query – Order posts by date, but also give priority for a specific term
is it possible to query posts ordering them by date, but also give priority for a specific term? I want posts from this term to be always on top, followed by the posts of the other taxonomies.
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $query_args = array( 'post_type' => 'topics', 'posts_per_page' => 12, 'paged' => $paged, ); $query = new WP_Query($query_args); if($query -> have_posts()):while($query -> have_posts()):$query -> the_post();
02 years 2021-04-01T20:33:21-05:00 2021-04-01T20:33:21-05:00 0 Answers 0 views 0
Leave an answer