I'm trying to make it so my custom taxonomy terms don't have archive pages. I achieved something similar for a custom post type using "publicly_queryable' => false". I tried this from the docs inside the register_taxonomy function:

'public' => false,
'rewrite' => false,

Which works.. but it also removes the ability to view the taxonomy from anywhere in the dashboard.


If you set public to false, this taxonomy will get hidden in all places.

So if you want it to be visible in wp-admin, you’ll have to also set show_ui to true - it will show the admin interface to manage this taxonomy.

You can see the full list of params here: https://codex.wordpress.org/Function_Reference/register_taxonomy

And here is a generator, that may be a nicer way to create code for registering taxonomies/posts: https://generatewp.com/taxonomy/

  • Thank you for this. After posting my question, I realize that "publicly_queryable' => false" actually does work with custom taxonomies.. Do you know how that differs from public -> false and rewrite -> false?
    – sk03
    Feb 4 '19 at 20:18
  • You can find full explanation of these params in Codex (there’s a link in my answer) Feb 4 '19 at 20:19
  • Thanks, was just wondering if you could provide a better explanation than what's in the Codex. From what I understand, publicly_queryable disables archives, and public -> false & rewrite -> false basically disable it from showing to the public in singular view.
    – sk03
    Feb 4 '19 at 20:22
  • Not exactly... Publicly queryable disables automatic query variables for that taxonomy. Rewrite disables only nice permalinks (but you can still display lists using query args). Feb 4 '19 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.