Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    Is setting “Public” to false the right way?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like Public/Publicly Queryable would be the closest you can get easily with just CPTUI alone. You’d want to set them to false.

    If you’re willing to dive into code, you could do an is_archive() check for the specific taxonomy, on say the template_redirect action hook. That’d prevent users from being able to reach them.

    If this is mostly an SEO thing, and the above doesn’t quite work, I am sure there are tools out there that could set things like noindex/nofollow/etc for those archives.

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    Hi setting “public” as false redirects the taxonomy archive to the homepage which is perfect. That’s all i needed.

    I was scared it would also change something else but it seems to do only that. The taxonomy exists and works fine so all good.

    • This reply was modified 7 years, 11 months ago by ctrlaltdelete.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sounds good, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to disable custom taxonomy archives?’ is closed to new replies.