Created
March 16, 2017 22:24
-
-
Save Pebblo/ad340d6340c94ea963797342ef34dbac to your computer and use it in GitHub Desktop.
Example of how to exclude the 'espresso_event_type' taxonomy from the Enfold term links output on the single and archive outputs.
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 //Please do not include the opening PHP tag if you already have one | |
function tw_ee_exclude_ee_taxonomy( $excluded_taxonomies, $post_type, $post_id ) { | |
$excluded_taxonomies[] = 'espresso_event_type'; | |
return $excluded_taxonomies; | |
} | |
add_filter( 'avf_exclude_taxonomies', 'tw_ee_exclude_ee_taxonomy', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment