Forums

Posts 2 Posts
Connected items to/from the parent page (4 posts)

  1. 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/

  2. scribu
    Member
    Plugin Author

    Posted 12 months ago #

    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?

  3. 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

  4. scribu
    Member
    Plugin Author

    Posted 11 months ago #

    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?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.