Wordpress for Beginners |
Using Custom Post Types As Taxonomies In WordPress with CPT-onomies Posted: 15 Jun 2012 08:26 AM PDT If you have ever used custom post types then you know how powerful they can be when it comes to organizing your content. What do you do though if you want to organize one of your post types according to another? For example, let’s say you have two custom post types. One of them is your favorite movies, while the other is your favorite actors. One way to link these posts would be to create a taxonomy using the actor names and tag each movie with the actors that play in it. The problem with this is that now you will be managing an actors taxonomy as well as an actors custom post type. The best way to prevent this and streamline the relationships between your two pieces of content is to make the actual actors post type into a taxonomy. In this post we are going to show you how to do that. First, download and install the CPT-onomies WordPress plugin. Once you do this if you go to Settings » CPT-onomies you will be able to create and organize all of your new custom post type taxonomies. As you can see in the screenshot above, you can control which post types are linked to one another. In this example, actors and directors are linked to movies. If you want to add or edit any of your custom post types, you can easily do this by selecting either the “add a new custom post type” button or editing your current custom post types (see screenshot below). Once you are done adding and editing all of your post types you can use them just as you would any other tag or category. In our example actors and directors were linked to movies so if you go to the movies post type then you will notice that in the area normally reserved for taxonomies you can now add actors and directors to your movies. Download CPT-onomies WordPress Plugin Using Custom Post Types As Taxonomies In WordPress with CPT-onomies is a post from: WPBeginner which is not allowed to be copied on other sites. |
You are subscribed to email updates from WPBeginner To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment