Forums

[closed] query_posts: 'order' not working together with 'category__and'? (2 posts)

  1. docufacts
    Member
    Posted 3 years ago #

    I am trying, for several day now, to select a list of posts under the condition it must be in multiple categories. The documentation writes to use the category_and array.

    $wp_query->query(array('category__and'=>array(44,83),'showposts'=>5,'order'=>'DESC', 'orderby'=>'title', 'paged'=>$paged));

    Above query results in a list of the correct posts, however using the loop all the posts are listed in ASC (oldest first) order and orderby do not seem to work anymore.

    PLEASE RESPOND TO MY QUESTION

  2. MichaelH
    Volunteer
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic