register_taxonomy() code with Basic and Advanced options — copy/paste or download a ready PHP snippet.post, page, book)./genre/sci-fi.
A WordPress custom taxonomy helps you organize content using custom categories and custom tags.
Use this generator to create clean register_taxonomy() code for taxonomies like Genres, Brands, Locations, Topics, and Skills.
Choose hierarchical taxonomies (category-style) or non-hierarchical taxonomies (tag-style), attach them to any post type, and enable REST API for Gutenberg.
Basic mode is perfect for quick setup. Advanced mode gives full control over labels, rewrite rules, admin columns, and visibility flags.
A custom taxonomy is a classification system you add to WordPress to group content, similar to categories or tags.
Hierarchical taxonomies behave like categories (parent/child). Non-hierarchical behave like tags (flat structure).
Yes. Provide multiple post type slugs separated by commas (example: post, product, book).
Yes for Gutenberg support and REST API usage. Disable only if you need a classic-only setup.
After adding or changing rewrite slugs, flush permalinks by saving Settings → Permalinks.
It adds a taxonomy column in the post list table to quickly see assigned terms.
Yes. Update the labels array and refresh admin screens. This does not change existing term data.
Avoid conflicts. Unique rewrite slugs prevent routing issues and unexpected URL behavior.
Not significantly by itself. Performance depends on query complexity and term counts.
In a child theme functions.php or a small plugin, especially if the taxonomy is essential site structure.