WordPress query reverse order
Since you are using ‘post__in’ in the ‘orderby’ parameter, the ‘order’ parameter will have no effect, however, you can simply reverse the array you are passing to ‘post__in’: $args = array( ‘post_type’ => ‘etlap’, ‘posts_per_page’ => 5, ‘post__in’ => array_reverse($ids), ‘post_status’ => ‘any’, ‘orderby’ => ‘post__in’ );