WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] each_connected doesn't seem to work (5 posts)

  1. waltervos
    Member
    Posted 2 years ago #

    Since the 0.9 update (though I'm not sure which version I was running before this) P2P_Connection_Type->each_connected() isn't working for me. P2P_Connection_Type->get_connected() works fine.

    I've posted the relevant code to pastebin. Can somebody take a look to see if I'm missing something?

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    There was a bug in each_connected(). (commit)

    It should work in the development version. (0.9.1-alpha).

  3. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    (nevermind)

  4. waltervos
    Member
    Posted 2 years ago #

    Nevermind? Updating to 0.9.1 did work for me. I ran into something else though. In filters p2p_connected_args and p2p_connectable_args, was $args['post_type'] always an array? It is now, and I'm wondering if it's supposed to be.

    'Nuff respect for your great work on this fantastic plugin by the way! This opens up so many interesting possibilities for WordPress development :).

  5. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Nevermind?

    I was going to ask about the SQL query, but then I remembered the 'monogamy' thread. :)

    was $args['post_type'] always an array? It is now, and I'm wondering if it's supposed to be.

    Yes, it's an array now because of this:

    https://github.com/scribu/wp-posts-to-posts/issues/17

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic