WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I must be a bit slow, I still have problems with the position field in the Posts-2-Posts plugin. If I set a position to each connection in a given post (say 1, 2 and 3) I don't understand how to display these connections in this order. I thought this would do the job :

$xxx = new WP_Query( array(
'post_type' => 'author',    
'p2p_orderby' => 'position',
'connected_order' => 'desc',
'connected_from' => get_the_ID()
) );    

It doesn't. The position field is just not taken into account at all, even if I remove the line « 'p2p_orderby' => 'position' ». What do I do wrong ?

share|improve this question
My code was flawed, please ignore this thread. – Mike Sep 11 '11 at 15:03
up vote 3 down vote accepted

Yes, it was actually 'connected_orderby' instead of 'p2p_orderby'.

Also, this can be done via drag-and-drop since version 0.9:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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