Skip to content

Instantly share code, notes, and snippets.

@pmgllc
Created January 30, 2014 21:10
Show Gist options
  • Save pmgllc/8718744 to your computer and use it in GitHub Desktop.
Save pmgllc/8718744 to your computer and use it in GitHub Desktop.
remove taxonomy pre_get_posts()
<?php
add_action('pre_get_posts', 'remove_issue_date_tax' );
function remove_issue_date_tax( $wp_query ) {
global $wp_query;
if( is_page( 'blog' ) ) {
get_query_var('tax', '-', 'issue-date');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment