Put the following in your theme’s functions.php
file (changing my-custom-post-type
to be whatever your Custom Post Type is, of course):
register_taxonomy_for_object_type('category','my-custom-post-type');
Related Posts:
- WP_Query by a category id and a custom post_type
- Custom Posts Types using Posts Category
- Custom-Taxonomy as categories: Remove “most-used” tab?
- How to get a list of term names of the custom post type im currently on in single.php
- Regex problem in an add_rewrite_rule
- Categories or Custom Post Type to Organize Content
- On clicking on the category name the page is redirecting on 404 pge
- Hook onto Add New Category
- Custom edit post column – category not showing
- List all custom post type posts from a given category?
- Custom post type taxonomy template
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Page naming when there is a sub-category only sometimes.
- get custom post type categories
- Custom post types and permalink
- Category page only displaying the posts from a custom type
- Get a permalink structure of /%posttype%/%category%/%postname%
- Search doesn’t find tags or categories in custom post types
- How to add custom post types to normal category pages
- Pagination on category page with custom post types
- Call custom post type by category
- Add category attribute to custom shortcode
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Linking to the most recent post in a Custom Post Type
- Show custom post type filtered by category
- Categories sorting
- How can I make my custom posts appear in their assigned category url?
- Allow user to set custom order to a list of custom taxonomies?
- PHP variable not regenerating when publishing multiple posts at the same time
- Problem with displaying posts in the CPT category
- Filter CPT posts by one or more categories
- Custom Post Types with a common category for a blog listing
- WP Query with categories only shows one post and ignores the category
- Custom Post Type + Categories
- Hierarchy and access control for Custom Post Types (CPT)
- Loop filtering Custom Post Types and/or Categories
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How can I show 1 featured post in a styled element, and the next few below differently styled
- How can I list Custom Post Types created with the Types plugin under categories?
- Categories and tags for custom post types
- Archieve.php not loading for custom post type
- How to add current custom taxonomy slug to body class
- Assign category a default post type
- Meta data (Tags and Categories) for Custom Posts not showing.
- List Posts By Custom Taxonomy
- Custom post types with categories in template
- Need help deciding on a taxonomy
- Get Posts by Category, Tag , and CPT Taxonomy
- The Difference Between Categories and Tags and Taxonomies and Terms
- Get assigned post categories
- Default Category Page not showing custom post type which has taxonomy category
- Custom Post Type posts not showing in category
- Post Query not working
- Add Extra Category Field to CPT Categories
- Category Name with Custom Post Type
- cannot achieve this structure (custom posts VS categories VS ??)
- Am I mixing up the concept of posts pages and categories?
- CPT archive page – show one post from each taxonomy term
- how to organize my categories or should I do custom post types for some?
- Order Categories by Hierarchy?
- Multiple categories assigned to a single product breaking the breadcrumb
- How to divide Subcategories into pages of parent category wordpress
- Display all Categories except ones with a specific parent
- Custom front-end form for adding post – Category problem
- Custom post type archive page filters
- Custom Post Type Category Displaying ALL Sub Categories as well
- Control over custom post types on a specific page
- Custom query using one category that is used in all custom post types
- get taxonomies from terms
- create a “add icon” field in taxonomies page
- Feature image Gallery made from Custom Post type + Categories
- Convert With Custom Post Type
- To display the category of a specific custom post type
- Get meta values from parent post and save in child post
- Custom category taxonomy – archive page not showing up
- Use Category for Custom Post Type – But Need Another Separate Archive Page too
- Only show current category post
- Custom post type category archive URL redirects to home page
- how to use two permalinks for one custom post type based on categories
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Custom Catagory not found
- Page to show custom posts and one category
- How can I list custom post by custom category?
- Using get_terms() as shortcode attribute
- category_name not working in WP_Query
- how to show perticular category posts in custome page
- Use only selected regular categories for a Custom post form
- Bulk remove category from custom post type?
- Page that ‘subscribes’ to multiple categories
- Problem with menu categories doubling up when updating database?
- Remove slug from Custom Category Permalink + dual-category permalinks
- How to query posts by category with the_title();
- Show custom post type on post category page doesn’t work / breaks navigation
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Is it possible for post and custom post type to share a category base slug?