In this session we discuss what’s involved in creating custom taxonomies in WordPress using the Types plugin and applying it to post types. We also talk about the hierarchical and non-hierarchical taxonomies and how they are created.
Member: Okay, one of the other things that you talked about in your How To Build A Business Website series… I guess it doesn’t matter whether it’s for Genesis or Thesis… was the custom taxonomies that you used to do your indexes by lesson subject, type and by alphabetical topics. What’s involved in creating those custom taxonomies so that you can create an index like that?
Rick: It’s really easy. You would download the Types plugin and then use the Types plugin to create the taxonomies. And we use a hierarchical taxonomy and a non-hierarchical taxonomy that is lesson subject and topic. The topic is the one that’s not hierarchical while the lesson subject is. And you just make sure it applies to the post types that you want it to apply to. I mean, if you just got posts and pages, any taxonomy you create could cover both posts and pages. It doesn’t have to be just one or the other like tags and categories are.
Rick: And once you’ve done that, WordPress automatically creates the taxonomy archive page for you. So you know, if we look at a lesson subject here and if we just click on the lesson subject Agency child theme, this page right here is automatically generated by WordPress. So you’re going to have it in Genesis and you’re going to have it in Thesis and in fact, you’re going to have it in any theme that is out there. Because the page that shows the taxonomy archive, that’s what’s this is… taxonomy archive page, that is automatically generated by clicking on the taxonomy term. So I have these things down here, taxonomy terms filed under topics and then lesson subjects. So if I click on this child themes topic, it brings up the topics taxonomy archive page for the term child themes. And here’s everything on my site about child themes in this taxonomy archive page.
So those are all long words but it’s slam dunk simple to create.
Member: I follow it completely. Thank you very much. I appreciate it.
Rick: And if you want to see that kind of thing in action, I mean, you might just search this site for custom taxonomy. But I did teach the Community Library case study. I did show extensively how to use custom taxonomies. Now again, a lot of that is in the context of Thesis but the kind of stuff that you want to do is independent of the theme really. So the Community Library Website case study though has a lot of stuff in there about custom taxonomies and custom post types and custom post meta and all that kind of stuff. And it should be fairly easy to extrapolate from Thesis to Genesis because almost all of the material covered there is independent of the theme.
Member: Excellent. Thank you very much. I appreciate it, Rick.
Rick: You’re welcome.