Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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.