I have a query with multiple orderby
params in a custom page that I am having difficulty getting to work. The query is to return posts with either tag-AAA
or tag-BBB
tags. And I'd like to sort it based on DESC order by post_date
but within the same pub day sort by post title in ASC order. I tried the following but it does not work. Whatever I set as the first argument in orderby sees to win the sort and the next appears to be not taken into account at all. Any assistance is appreciated.
$args = array(
'tag' => 'tag-AAA,tag-BBB',
array ('orderby' => array( 'title' => 'ASC', 'post_date' => 'DESC') ),
$query = new WP_Query($args);