0
我現在在wordpress中使用WP Posts to Posts插件。在WordPress中獲取和反對p2p_id - WP發佈到帖子插件
現在我在帖子和帖子,用戶和用戶,或帖子和用戶之間建立了一些鏈接。
而在上述所有三種情況下,我想用p2p插件做更多。
例如,我可以先取p2p_id:
$users = get_users(array(
'connected_type' => 'multiple_authors',
'connected_items' => $post
));
foreach($users as $user) {
$p2p_id = $user->p2p_id;
// ********** ATTENTION *********
// Here, I got the p2p_id of the p2p object
// In a general purpose, I want to get the
// from and to object from the p2p_id
}
所以,我怎麼能得到從並通過p2p_id反對?我發現了文檔,但似乎沒有有效的方法。