Support » Fixing WordPress » Tax_Query and Orderby

  • Resolved formica


    Hi there

    Apologies but can’t for the life of me get the ‘orderby’ and ‘order’ to work. Can anyone point me in the right direction as to what I’m doing wrong please?

    $args = array(
         'orderby' => 'title',
         'order' => 'DESC',
         'tax_query' => array(
    	  'taxonomy' => 'therapies',
    $query = new WP_Query( $args );
Viewing 1 replies (of 1 total)
  • Well… couldn’t figure out why it wasn’t working but got a work around from the codex..

    global $query_string;
    query_posts( $query_string . '&order=ASC' );

    No doubt something I was / am doing wrong.

Viewing 1 replies (of 1 total)
  • The topic ‘Tax_Query and Orderby’ is closed to new replies.