I have custom post type of
brand and custom field generated via types plugin,
wpcf-sorter trying to manually create a field to sort my posts. Some of the posts have this custom field populated with a numeric value and others don't have it at all since we're developing this mid-way.
My code is:
$args = array( 'post_type' => 'brand', 'posts_per_page' => 999, 'meta_key' => 'wpcf-sorter', 'orderby' => 'meta_value_num', 'order' => 'DESC' );
This will pull out all the posts that have the
wpcf-sorter meta key. Is there a way to pull every post and if it has the
wpcf-sorter, show them first?