• 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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘query_posts: ‘order’ not working together with ‘category__and’?’ is closed to new replies.