Deactivate archive for specific custom taxonomy (3 posts)

  1. thirstcard
    Posted 4 years ago #

    Is there a way to deactivate the archive for a specific custom taxonomy? I have about 5 custom taxonomies set up but only need an archive for 4 of them. I don't need an archive page for one of them.

    Is this possible?

  2. Thor Brink
    Posted 4 years ago #

    When registering post-types there is a parameter which is called 'has_archive'.
    Set this to false to prevent archives from being enabled.
    For more details on registering post-types: WordPress Codex

  3. thirstcard
    Posted 4 years ago #

    @Thor Brink

    Thanks but your solution only makes it possible to deactivate a post type archive.

    I need to deactivate a custom taxonomy archive.

Topic Closed

This topic has been closed to new replies.

About this Topic