Skip to content

Instantly share code, notes, and snippets.

@prionkor
Forked from anonymous/gist:0503c65357a25d66b2e3
Last active November 7, 2015 14:08
Show Gist options
  • Save prionkor/fce2ccdbf9a6ea26ff6b to your computer and use it in GitHub Desktop.
Save prionkor/fce2ccdbf9a6ea26ff6b to your computer and use it in GitHub Desktop.
$args = array(
'offset' => $offset,
'posts_per_page'=> $display_count,
'paged' => $paged,
'post_type' => 'resume',
'meta_key' => 'ratings_average',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'meta_query' => array(
'relation'=> 'AND',
array(
'key' => 'rating_average',
'operator' => 'NOT EXISTS'
),
array(
'key' => 'rating_average',
'operator' => 'EXISTS'
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment