Saltar navegación

Creating a Custom Taxonomy en WordPress

Custom taxonomy lets you organize your custom post types. It’s like categories and tags for posts, but used for any custom type that you define.

Duración

Steps for Creating Custom Taxonomy

  1. Go to the Toolset Dashboard page and click the Add custom taxonomy button in the row of the post type you want to add a custom taxonomy to.
  2. Enter the plural and singular name for your taxonomy. Slug is created automatically.
  3. Click the Save Taxonomy button.

Your new taxonomy will now appear in the main WordPress admin menu. It will be under the post type that you added this taxonomy for.

Go to this taxonomy page to add your actual categories to it. These categories are called taxonomy terms.

Using hierarchical or flat taxonomy

When you edit a taxonomy, use the Taxonomy type section to set whether it is hierarchical or flat.

Hierarchical taxonomy can have a structure with children and parent taxonomy terms, just like the standard post categories.

Flat taxonomy has no structure and works like standard post tags.

Adding a Custom Taxonomy to WooCommerce Products

With Toolset, you can add custom taxonomies to your WooCommerce Products. This allows you to further organize your products.

For example, you can use standard product categories to classify products by types (vinyl, tape, CD, etc. for used music records) and use a custom taxonomy to classify your products by condition (mint, very good, good, fair, etc.).

To learn more, check out the full lesson about adding custom taxonomies to WooCommerce Products.

Updated
noviembre 18, 2020