Created
September 26, 2012 13:58
-
-
Save billerickson/3788219 to your computer and use it in GitHub Desktop.
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( | |
'posts_per_page' => -1, | |
'category_name' => 'complete', | |
'order' => 'ASC', | |
'meta_query' => array( | |
'relation' => 'AND', | |
array( | |
'key' => '_crm_portfolio_include', | |
'compare' => 'NOT EXISTS', | |
), | |
array( | |
'key' => '_crm_portfolio_exclude', | |
'compare' => 'NOT EXISTS', | |
) | |
) | |
); | |
$loop = new WP_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment