From the course: WordPress: Custom Post Types and Taxonomies

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating custom taxonomies

Creating custom taxonomies - WordPress Tutorial

From the course: WordPress: Custom Post Types and Taxonomies

Start my 1-month free trial

Creating custom taxonomies

- [Instructor] Custom Post Types aren't the only thing that Custom Post Types UI allows us to create. We can also create Custom Taxonomies. Let's create a Size Taxonomy now to organize our businesses. If we click on CPT UI, Add/Edit Taxonomies, you'll see a number of settings to define a Custom Taxonomy. Since we don't have any defined yet, we'll be taken directly to the Add New Taxonomy form and there are no other tabs that appear at the top. We're going to take a look at the Basic Settings first. These are required, the additional labels, which we'll look at later, are optional. They can be determined from the Basic Settings. Let's go ahead and create a simple Taxonomy called size. We'll set the Slug to size, we'll set the Plural Label to Sizes and we'll set the Singular Label to Size. Now let's attach our Taxonomy to a Post Type. You can see that Posts, Pages and Media are all included in WordPress Core and then we have the businesses Custom Post Type that we created. Let's go…

Contents