CPT-onomies is a WordPress plugin that allows you to use your custom post types as taxonomies without having to manage your “terms” in two places. CPT-onomies does all of the work, allowing you to create custom post types and register CPT-onomies without touching one line of code!
If you’re already using a plugin, or theme, that creates custom post types, don’t worry, CPT-onomies is all-inclusive. Any registered custom post type can be used as a CPT-onomy.
What Is A CPT-onomy?
Is CPT-onomy An Official WordPress term?
No. It’s just a fun word I made up. =)
Need Custom Post Types But Not (Necessarily) CPT-onomies?
CPT-onomies offers an extensive custom post type manager, allowing you to create and completely customize your custom post types within the admin.
It doesn’t take long to figure out that custom post types can be a pretty powerful tool for creating and managing numerous types of content. For example, you might use the custom post types “Movies” and “Actors” to build a movie database but what if you wanted to group your “movies” by its “actors”? You could create a custom “actors” taxonomy but then you would have to manage your list of actors in two places: your “actors” custom post type and your “actors” taxonomy. This can be a pretty big hassle, especially if you have an extensive custom post type.
This is where CPT-onomies steps in. Register your custom post type, ‘Actors’, as a CPT-onomy and CPT-onomies will build your ‘actors’ taxonomy for you, using your actors’ post titles as the terms. Pretty cool, huh?
What’s really great about CPT-onomies is that they work just like any other taxonomy, allowing you to use WordPress taxonomy functions, like get_terms(), get_the_terms() and wp_get_object_terms(), to access the CPT-onomy information you need. CPT-onomies even includes a tag cloud widget for your sidebar.
As of version 1.0.2, CPT-onomies work with tax queries when using The Loop.
Note: Unfortunately, not every taxonomy function can be used at this time. Check out the CPT-onomy documentation to see which WordPress taxonomy functions work and when you’ll need to access the plugin’s CPT-onomy functions.