I have a query post for my CPT ‘listing’ that order posts by value of price contained on meta key.
Now I’d like to add the possibility to show in the loop first posts that has a specific tag (o whatever else – for example a different meta value). Since that sticky post works well on standard post only, I’d like to implement this with a work aroud.
I have the following query:
$args = array(
'post_type' => 'listing',
'post_status' => 'publish',
'posts_per_page' => 20,
'meta_key' => 'price',
'orderby' => 'meta_value_num',
'meta_type' => 'NUMERIC',
'order' => 'ASC',
);
Is possible to show first the posts that have taxonomy ‘PRO’ with term ‘yes’ and after show the posts have taxonomy ‘PRO’ with term as ‘no’?
Or something other way (for example with additional custom field)?