[Resolved] Disable Custom Taxonomy Archive Title

Home Forums Support [Resolved] Disable Custom Taxonomy Archive Title

Home Forums Support Disable Custom Taxonomy Archive Title

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1018132
    Andy

    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

    #1018159
    Tom
    Lead Developer
    Lead Developer

    Hi Andy,

    You would use is_tax().

    For example: is_tax( 'your-taxonomy-name' )

    Let me know if you need more info ๐Ÿ™‚

    #1018168
    Andy

    Awesome, thanks!

    #1018170
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.