$args = array( 'post_type' => 'news', 'posts_per_page' => 5, 'post_status' => 'publish', 'order' => 'ASC', 'tax_query' => array( array( 'taxonomy' => 'week', 'field' => 'slug', 'terms' => $currweeknumber, ) ) ); $post = get_posts($args);
I have a page which posts 5 news each week. I have a problem. A year passed since I started my blog and this
$args query shows me the last year news, not the actual. This is because week number doesn't changed at all, it's the same value from 1 to 52 (basically I have 52 terms with the value of 1,2,3...etc). Is there any way to get the last 5 element of this array, not the first 5? I'm tried with
'order' => ''DESC' but not worked.