Created
January 30, 2014 20:36
-
-
Save pmgllc/8718167 to your computer and use it in GitHub Desktop.
It won't return any results without an ID or a slug... is there something other than taxonomy to lay out here?
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 | |
// Unhook Genesis Loop and use custom loop | |
remove_action( 'genesis_loop', 'genesis_do_loop'); | |
add_action( 'genesis_loop', 'not_issues_loop'); | |
function not_issues_loop() { | |
global $wp_query; | |
$args = array( | |
'posts_per_page' => 20, | |
'post_type' => 'post', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'issue-date', | |
'operator' => 'NOT IN' | |
), | |
) | |
); | |
$query = new WP_Query( $args ); | |
return $query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment