Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created March 16, 2017 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/ad340d6340c94ea963797342ef34dbac to your computer and use it in GitHub Desktop.
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.
<?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