My question resembles one I asked before:

[Plugin: Posts 2 Posts] Changing display order of connections

But now I want to display the connection in the SAME order I created them ! That is, if I attache quote#1 THEN quote#2 to an article, I want quote#1 to appear before quote#2 regardless of the creation date of these quotes, their alphabetical order or whatever. Don't know if I make myself clear o_O

1 Answer 1


With the development version of the plugin (0.8-alpha), you have a 'p2p_orderby' query var, which you can use with WP_Query, like so:

$my_query = new WP_Query( array(
  'connected_to' => get_queried_object_id(),
  'p2p_orderby' => 'my_connection_field'
) );

More info on connection fields:


Note that this is alpha software and you still have some work to do on your own.

  • PS: If you want to make sure that I see the question, either tag it with plugin-posts-to-posts, or use the wp.org support forums.
    – scribu
    Commented Jul 16, 2011 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.