Archived topic
Disable Custom Taxonomy Archive Title
3 replies · Started by Andy on September 24, 2019
Viewing posts 1–4 of 4
Hi,
I'm using the following snippet to disable category archive titles:
add_action( 'wp', 'tu_remove_category_title' );
function tu_remove_category_title() {
if ( is_category() ) {
remove_action( 'generate_archive_title', 'generate_archive_title' );
}
}
But how would I do the same for Custom Taxonomy Archive titles?
Thanks,
Andy
Hi Andy,
You would use is_tax().
For example: is_tax( 'your-taxonomy-name' )
Let me know if you need more info :)
Awesome, thanks!
You're welcome :)
This archived topic is closed to new replies.