Other Projects

Labs


Products

Intermediate post type settings

Custom Fields

Custom category and tag sets (taxonomies)

You can any multiple custom category (and tag) sets to a custom post type. You can also share a category set between different custom post types.

An example of how you might use category sets is a site where you have two custom post types: Movies and Actors. Along with the post types, you have two category sets of Awards and Genres. Movies will use both Awards and Genres. Whereas, Actors will share the Awards categories with Movies since Awards can be given to either a movie or an actor. But, a genre really only applies to a movie. Because they share the category Awards, you can the use custom query to display both Movies and Actors in the same loop.

Add a new category set to a post type

From the post type edit page, go to the "Category Sets" box.

The Category Sets box with category sets

  1. Click the "Add category set" button.
  2. A dialog will appear with the title "Add New Category".
  3. Enter a name for the category in the field labeled "Name".
  4. Select if the category set will be a "Category" (with parent child relationship between terms) or "Tags" (with no relationship between terms). You cannot change this later on.
  5. Click the "Add Category" button.

The 'Add New Category' dialog

Add an existing category set to a post type

Again, from the post type edit page, go to the "Category Sets" box. You will see the existing category sets in the table.

  1. Find the category set you wish to add and check the check-box in the "Use" column.
  2. Click the "Save categories" button.

Screenshot of adding an existing category set to a post type

Remove a category set from a post type

Similar to the steps above for adding an existing category, go to the "Category Sets" box.

  1. Find the category set you wish to remove associations with the post type and then uncheck the check-box in the "Use" column.
  2. Click the "Save categories" button.

[TODO]