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

Is there a way to control the order in which connections are displayed ?

I've got a Articles => Books connection so that in each article I can quote a number of books. I want to display the quoted books in the footnotes of the article.

Currently, if I create say three books connections and then display them at the bottom of my article, I will get them in reverse order. Can I change that ?

share|improve this question

Yes, there is a way to do this, since version 0.8:


share|improve this answer

I know this question is old, but I just spent an hour researching this problem as well.

Within the main post that has multiple things related to it, in the sidebar (where connections are created), you can drag and drop to reorder the connected posts! That is how they will appear when called. Very intuitive once you realize it's there, but not immediately obvious. Good luck.

share|improve this answer

you could pass Order & Orderby Parameters

your code would be something like,

while ( have_posts() ) : the_post();
    $connected_writers = get_posts( array(
        'post_type' => 'writer',
        'nopaging' => true,
        'connected_to' => $post->ID,
        'suppress_filters' => false,
        'orderby' => 'title',
        'order' => 'DESC'
    ) );

    foreach ( $connected_writers as $writer ) {
        echo $writer->post_title;
share|improve this answer
Doesn't seem to work. Whether I include 'order' => 'DESC' or not, the display order remains the same : – Mike Jun 19 '11 at 12:18
Anybody ? There must be a way to do this – Mike Jun 25 '11 at 11:35

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.