CPT-onomies is a WordPress plugin that allows you to create, and use, taxonomies powered by your custom post types, using the post titles as the taxonomy terms.
CPT-onomies work just like any other taxonomy, allowing you to use WordPress taxonomy functions, like get_terms() and wp_get_object_terms(), to access the information you need. Unfortunately, not every taxonomy function works right now but don’t worry, I’ve created CPT-onomy functions to help bridge the gap between WordPress and the plugin. The CPT-onomy functions even mirror the WordPress functions, using the same parameters and return values.
Use the following documentation to see which WordPress taxonomy functions work (and how to use them) and when you’ll need to use a CPT-onomy function. The documentation also includes function parameters, return values, examples, and other helpful information.
Retrieves the terms associated with the given object(s), in the supplied CPT-onomies.
Will remove all relationships between the object and any terms in provided CPT-onomies. Does not remove the term or CPT-onomy itself.
Relates an object (post) to a term and CPT-onomy. Creates the term and CPT-onomy relationship if it doesn’t already exist.
Displays a list of CPT-onomy terms in what is called a 'tag cloud', where the size of each term name is determined by how many times that particular term has been assigned to posts.
Used on single post pages, this template tag displays a link to the previous post which exists in chronological order from the current post.
Used on single post pages, this template tag displays a link to the next post which exists in chronological order from the current post.
Version 1.1 brings support for programmatically registering CPT-onomies. While the majority of users will be fine using the settings panel to register their CPT-onomies, this functionality will come in handy for a few.
Since CPT-onomy terms are custom post type post titles, add terms to your CPT-onomy by adding posts to its custom post type.
Since CPT-onomy terms are custom post type post titles, update your terms by updating its custom post type’s posts.
Changing the CPT-onomy Meta Box Format
Assigning your CPT-onomy terms is no different than assigning taxonomy terms. Meta boxes will be added to each "edit post" page, where applicable, so users who have the capability can select, or "assign", the desired terms.
Customizing CPT-onomy Labels
Filter added in version 1.3.4. By default, a CPT-onomy’s labels are set to match the custom post type’s labels. You can use the ‘custom_post_type_onomies_cpt_onomy_labels’ filter to change these default labels....
Customizing CPT-onomy Settings And Set Default Values
These filters are very helpful for customizing your CPT-onomy settings and allow you to exclude certain data from being selected and/or set default property values. Some need-to-knows about filters: To...
Including/Excluding CPT-onomy Terms
CPT-onomies 1.2 (excluding) and 1.3 (including) introduced two new filters and the functionality to 'include' and 'exclude' CPT-onomy terms when being assigned.
Removing CPT-onomy Meta Boxes From Admin
Remove the CPT-onomy meta box from the admin “edit post” page by returning false to the following filter. Some need-to-knows about filters: To use this filter, tweak the code below...
Removing the CPT-onomy Admin Column
Remove the CPT-onomy’s admin column, and/or it’s sortability, by returning false to the following filter(s). Some need-to-knows about filters: To use this filter, tweak the code below and add it...
Removing The CPT-onomy Admin Dropdown Filter
Remove the CPT-onomy’s dropdown filter from the admin manage custom post type screen by returning false to the following filter. Some need-to-knows about filters: To use this filter, tweak the...
Custom CPT-onomy Archive Pages
As of version 1.2, CPT-onomies has implemented a simple, built-in method of setting up custom CPT-onomy archive pages that's as easy as adding a rewrite rule with a few parameters.
When I query posts, the results are incorrect
The most important thing to understand about CPT-onomies is that they are not stored in the database in the same manner as taxonomies. So if your queries are returning incorrect...
Working With “The Loop”
"The Loop" is A WordPress term that refers to the process of displaying posts. The Loop processes each of the posts to be displayed on the current page and formats them according to how they match specified criteria within The Loop template tags.