Last active
October 14, 2017 17:01
-
-
Save gajayana/bfd3a4d592f2f3cb6f988e8c695676c9 to your computer and use it in GitHub Desktop.
CMV #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'post_type' => 'company', | |
'post_status' => 'publish', | |
'posts_per_page' => 100, | |
'meta_query' => array( | |
'relation' => 'AND', | |
'sponsored_clause' => array( | |
'key' => 'sponsored' | |
), | |
'ranking_clause' => array( | |
'key' => 'ranking', | |
), | |
), | |
'orderby' => array( | |
'sponsored_clause' => 'DESC', | |
'ranking_clause' => 'DESC', | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment