Created
January 30, 2014 21:10
-
-
Save pmgllc/8718744 to your computer and use it in GitHub Desktop.
remove taxonomy pre_get_posts()
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 | |
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