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:
- Renaming Custom Post Types and Taxonomies
- 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?
- Custom Taxonomy Template Post List with Sort Order
- wp_insert_term doesn’t work with custom post type’s taxonomy
- Taxonomy page returns 404 page not found
- 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
- Display taxonomy term only if there’s a value
- 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?
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- 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 conditionally redirect to the post from a taxonomy page?
- How to make custom taxonomy into drop down select in a custom metabox
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- How to organise this data within WordPress
- Output terms for custom post types
- How to Set Taxonomy Object Description?
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Variable not working in WP_Query
- Hide meta box for everything BUT a certain custom post type
- Associate all Custom Post Types with Taxonomy
- Alphabetically sort a taxonomy.php template by post title
- Show Taxonomies with admin area for custom post type?
- Custom taxonomy template list not working (404)
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Running a custom query inside another cpt single and trying to grab a variable
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Query Custom Post Type by Taxonomy
- Copying over taxonomy structure from one CPT to another
- Sort Archive by Taxonomy
- Query all posts under one taxonomy? Why is my code not working?
- Display ONE taxonomy and its assigned pages
- Page that lists publications by classifying them by taxonomy
- Order posts by taxonomy terms
- Filtering posts based on three taxonomies
- Define multiple prefixes for custom post type
- Display category filters for custom post type when category is shared by multiple post types
- How to order taxonomy terms by most recent post?
- editing shortcode for custom post type within a plugin
- Taxonomies are not showing in the category dropdown
- How to display all terms from all taxonomies in post, but separately for each taxonomy?
- List all posts associated under custom taxonomy
- How to transfer categories (default) to custom taxonomy?
- Taxonomy to Post Type. Every Taxonomy Item can be Producer or Developer
- Custom Taxonomy – fields
- Custom post type category link + add to menu
- One of my headings is mysteriously coming up as a link in my CPT Archive
- Single taxonomy for different custom post types
- Taxonomy and Custom Post type with Collpase
- Best approach to allow front-end display of posts’ reviewers?
- Listing Custom Post Post from certain category
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Type parent slug as menu item
- Sorting on Taxonomy in archive page
- Create an additional template page for every term taxonomy
- Taxonomy Grid Archive Help?
- Archive templates based on taxonomies
- Query Distinct Taxonomies of Custom Post Type
- Show taxonomies from specific CPT
- List a custom post type’s posts ordered by nested custom taxonomy
- Author template – separate custom post type by custom taxonomy term for $curauth
- Single and Archive Pages with Custom Post Type
- Sharing a custom taxonomy – No posts?
- See the process of creating a taxonomy and tell me where I made a mistake
- show only one category posts in admin