rnrcanneverdie
Member
Posted 12 months ago #
Hi,
if I query the connected items to a child page p2p also gets the ones connected to the parent page.
I can prevent this behavior if I only pass the $post->ID instead of the $post object or "reset" the parent id ($post->post_parent = 0), is it the proper way?
http://pastebin.com/gzDukvNN
Thank you!
http://wordpress.org/extend/plugins/posts-to-posts/
So, you're saying this happens if you pass 'connected_items' => $post.
0. Have you tried deactivating all other plugins and changing to the default theme?
1. What does your connection type look like?
rnrcanneverdie
Member
Posted 12 months ago #
Yes, exactly.
0. I've tried a fresh wp install w/ twentyten theme, only p2p plugin activated: same result.
1. http://pastebin.com/z1ktJAwH
I can't seem to reproduce the problem.
1) Do you also get documents connected to other, unrelated pages, or just connected to the parent page?
2) What happens if you have a grandchild page?