My query is not ordering my posts using the
orderby
$args = array(
'post_type' => 'wpsc-product',
'post_status' => 'publish',
'showposts' => -1,
'tax_query' => array(
array(
'taxonomy' => 'wpsc_product_category',
'field' => 'term_id',
'terms' => $cat_id,
),
array(
'taxonomy' => 'series',
'field' => 'slug',
'terms' => $series_name
)
),
'orderby' => 'title',
'order' => 'DESC'
);
$cat_id
$series_name
orderby
order
I have checked your code on my test blog. And it works as expected. So parameters
'orderby' => 'title',
'order' => 'DESC'
you have set correctly.
In this situation you can check SQL request.
$query = new WP_Query($args);
var_dump($query->request);