How to show the posts of some category first, and then all other posts that does not belong to that category?
I have logic that get the category and reorder the posts. But i don't know how to use. Please help.
$args = array( 'post_type' => 'event', 'meta_key' => '_event_end_date', 'meta_compare' => '>', 'meta_value' => $today, 'order' => 'DESC', 'posts_per_page' => '10' ); $loop = new WP_Query( $args );