WordPress.org

Ready to get started?Download WordPress

Forums

Deactivate archive for specific custom taxonomy (3 posts)

  1. Henry
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

    Hi.
    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. Henry
    Member
    Posted 2 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