Skip to content

Instantly share code, notes, and snippets.

@pmgllc
Created January 30, 2014 20:36
Show Gist options
  • Save pmgllc/8718167 to your computer and use it in GitHub Desktop.
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?
<?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