Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
Learn how to build an advanced portfolio site that showcases various types of content using the free open-source application WordPress. Author Morten Rand-Hendriksen demonstrates creating custom post types, differentiating and classifying content with custom taxonomies, and working with custom post templates. The course also shows how to embed YouTube videos, build index pages, display the latest posts from different custom post types, and hook custom post types into separate themes. Exercise files accompany with the course.
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.
There are currently no FAQs about Create an Online Portfolio with WordPress.
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.