I have a simple WP_Query to get a list of posts of co-author (taxonomy author) order by date, this is the query :
$username = get_the_author_meta( 'login', $author_id );
$args = array(
'post_type' => 'any',
'orderby' => 'date',
//'orderby' => 'post_date',
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => 'author',
'field' => 'name',
'terms' => $username
)
)
);
$query = new WP_Query( $args );
The result is always a list of posts ordering by date ASC... I have already search solution over internet without success... Any idea ?
Thanks a lot
'suppress_filters' => true
?