Probably you’re making a wrong use of taxonomies. Instead of using only the Categories taxonomy, you should create several Custom Taxonomies.
I mean Blog Categories, Download Categories, Team Departments, etc… should be different taxonomies, and you should assing each of these taxonomies to the custom post type(s) they’re related to…
Check the function register_taxonomy() for further information.
This is a very simple example:
function register_download_category() {
register_taxonomy(
'downloadcategory',
'downloads',
array(
'label' => 'Download Categories',
'rewrite' => array( 'slug' => 'downloadcategory' ),
)
);
}
add_action( 'init', 'register_download_category' );
In order to make queries by custom taxonomies you have to use the WP_Query Taxonomy Parameters.
Related Posts:
- get_terms by custom post type
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Creating “static” taxonomies to choose from, inside custom post type?
- How do I dynamically populate wp_nav_menu from a custom taxonomy?
- wp_insert_term doesn’t work with custom post type’s taxonomy
- It is possible to get a list of post types asociated to a taxonomy?
- display multiple term post from taxonomy in a single page
- How can you make permalink work for custom post type and taxonomy?
- How to get the parent’s taxonomy?
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Same base slug for CPT post and CPT taxonomy terms
- wp_insert_post custom taxonomy
- Taxonomy-{taxnonomy}.php is not working
- Get list of terms of current taxonomy archive for another taxonomy
- Post Link Filter Help [closed]
- Show Post Count of a Category
- Menu Multiple Taxonomies
- How to make a custom taxonomy selectable in post publish area?
- get_terms showing all categories instead of the ones assigned to a specific post
- Create Custom Post Type Permalink Structure
- Custom page template for category taxonomy
- How can I display an archive of only one category of my custom post type?
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Order By Post Type ThenBy Taxonomy
- How to show CPTs in term archive
- Custom query to filter posts that have current post as a taxonomy [closed]
- Tag page with Custom Post Types not returning any posts
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Is using taxonomies the way to go here or would custom post types be better?
- Categories of custom taxonomy don’t show any posts
- Custom Taxonomy back-end customizations
- Is it possible to have dedicated page for parent/child taxonomy?
- Display a grid of taxonomy terms at root taxonomy page
- limit value taxonomy based on previous taxonomy value wordpress
- Using meta_query and tax_query at the same time
- How to make custom taxonomy into drop down select in a custom metabox
- Filter get_cat_id for Custom Post Type
- Unable to link categories to custom post type using standard function
- Enable taxonomies by post type in an array of CPTs
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- How does the ‘the_post_navigation()’ work for CPT’s?
- Custom post type – list posts based on meta_key and display them divided by CPT taxonomy category
- Custom taxonomy (categories) on custom post type return no results
- Add tags to custom post type without menu link
- Targeting categories in custom fields
- Rewrite custom post type with taxonomy
- My custom taxonomy is only displaying 1 of 3 terms
- Sort results without WP_QUERY?
- Categories won’t appear on custom post type
- Custom Taxonomy Terms in Menu lead to which page?
- Display 1 Post per taxonomy with polylang
- Custom Post Type Taxonomy Term Order by Title
- Using page title as a link to term archive
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Displaying taxonomies as category links within sidebar and creating pages for these
- Get List of Terms based on a given term (different taxonomy)
- Question about link two types of data in wordpress
- Add Tags to a Custom Post Type from a FrontEnd Form
- Get the taxonomy value in the post loop inside the archive page
- Custom post type archive URLs with a single taxonomy
- How to show related posts of category on post within custom posttype
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- How to add CSS class field in Custom Taxonomy?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Taxonomy doesn’t follow slug permalink structure
- Archive for custom taxonomy
- Listing all custom posts having a specific taxonomy whatever the terms
- Convert attribute woocommerce terms (taxonomy terms) in posts of custom post type
- Display custom tax in “while” loop
- Categories manage
- Taxonomy template file not working with a taxonomy that contains a slash
- I can not call the categories of custom post type
- Showing taxonomies with terms that are attached to custom post
- Filtering custom post using Ajax and taxonomies, keep getting 0
- Custom Taxonomy page redirecting to 404 page
- Changing an item in drop down after 5 latest posts per taxonomy
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Related posts by taxonomy [duplicate]
- Taxonomy count per Post type
- Custom Post Type Categories Not Maintaining URL structure any more
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- How to display elements of different post types?
- How to display only taxonomies of custom post type in a page?
- Check if taxonomy is attached to at least one post in a post-type
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- Custom posts and custom taxonomies for many products and categories?
- How do i get the taxonomy term name on the CPT archive page?
- Echo post count of CPT with current taxonomy
- Is there a function that replace category name with a icon?
- Show custom category archive as front page and remove taxonomy slug from urls
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Passing total post count to javascript
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- Custom Taxonomy archive with url parameters