Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
When you've created new custom taxonomies, they are administered in the exact same way you would administer categories or tags under posts. So if we go in under Recipes and create a new recipe, this is just going to be a dummy one so I'll just call it Dummy, and it can have some text. It doesn't really matter. In this recipe, I'm going to add taxonomies for all the different elements. So I'll go under Meal type, click Add new meal type, and I'll say Dinner. Click Add new meal type, and then maybe it is a specific kind of dinner, so I'll make a sub-category called Meat, and then I'll assign it under Dinner category.
Now you see it appears underneath. This is why it's called a hierarchical taxonomy. I'll set in the Level of difficulty. The Level of difficulty here is Medium. As you go along you can also collapse these panels so that you see what's coming next. Under Ingredients I'll say beef and onions, and you see they appear at the bottom here. Under preparation time I'll say 30 minutes.
Under Servings I'll say 2 and then we're good to go. Now you noticed as I was doing this, I can add new items whenever I want to or I can pick existing ones, and this becomes important later on. So I'll publish this post and then we can go into any of these taxonomies. So I'll say Meal type and we can see the taxonomies we just created. So here under Meal type we now have these meal types. We have Dinner and then the sub-category Meat. For each of these, first of all we see the names themselves and the slug and if there was a fescription we'd also see the description, and we also see how many posts are associated with each of these categories.
Furthermore, we can do a quick edit for each of them and just change the name quickly. So for instance, if you spell dinner with one n, you can go in and change it or you can do a full edit, so you go and click Edit and then you get a full view and then you can add things like "Dinner is the most important meal of the day, except of course for breakfast," and click Update. Now what's cool is because this is all dynamically handled, even if we change the name or description or anything, the taxonomy is still attached to that individual item.
We'll also see this when we go into Ingredients, which is a nonhierarchical taxonomy, it looks almost the same, except if we go to Edit you'll see we don't have the option of setting a parent. But otherwise, it's exactly the same. You can give it a name, you can give it a slug, you can give it a description, you can update it. And because some of these taxonomies carry across multiple post types even though we're now under Recipes and Ingredients, if we jump down to Photos and Ingredients we see the exact same taxonomy.
So now you see you can manage them both from inside an individual post or you can manage them on your own, and you can do a lot of work on your taxonomies to really beef them out and make them work really well. Adding custom taxonomies to your custom post types makes them extremely powerful. Understanding how to use the custom taxonomies and manage them makes you extremely powerful in managing your site.
Get unlimited access to all courses for just $25/month.Become a member
119 Video lessons · 50728 Viewers
117 Video lessons · 38390 Viewers
113 Video lessons · 81474 Viewers
65 Video lessons · 11347 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.