1. Home
  2. Docs
  3. Zelvigo Dev Studio Docume...
  4. Code Generators
  5. Taxonomy Generator
  6. Creating a Taxonomy

Creating a Taxonomy

Open the builder

Go to Zelvigo Dev Studio → Create Taxonomy.

Form fields

  • Taxonomy Key → max 32 chars; reserved keys (category, post_tag, etc.) are blocked
  • Singular / Plural Name
  • Post Types → comma-separated keys, e.g. post, movie
  • Description

Options

  • Public, Hierarchical, Show in REST API, Show Admin Column

Unregistered post types

If a post type is not registered yet on this site, Zelvigo shows a confirmation prompt. Post types already generated in Zelvigo are accepted automatically → useful when building a plugin package before the CPT exists on the live site.

After generating

Copy the PHP and add it to your plugin. Register taxonomies on the init hook alongside your CPT.

How can we help?