You need to add 'taxonomies' => array('category')
in your register_post_type()
function.
Related Posts:
- WordPress Multisite – global categories
- Get posts from sites in Multisite?
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Can’t custom taxonomies have same terms (slugs) as categories?
- Using wp_category_checklist in a widget
- Exclude the category from the WordPress loop
- How to make child categories recognize parent’s template displays
- Completely disable categories
- Show div only if post is in specific category
- wp_list_categories exclude not working
- How to show a category post to a specific registered user
- Get id of category from drop down menu
- How can I only show certain posts?
- Category menu item and its last 10 posts as sub-menu
- what is the action hook code to supporting product category condition in single product page of woocommerce?
- Prevent function from triggering again when post in specific category gets another category?
- Posts from multiblt categories but featured image only in the first one, the rest to have the post title only
- Get all the blog’s categories and the related URLs?
- Conditional Tag for sub cagtegories?
- Display only posts from referred category on date archive page
- Is it possible to add short code and html tag in Category Description?
- Sort post’s categories by ID
- How do I specify more than one category?
- Set the default category of an attachment
- exclude post from displaying in loop if it is in a category, but not in many categories
- Show Featured products in product category pages
- Set post categories to include parents when setting child category
- How to remove category titles?
- Inserting Category programmatically
- Adding Categories Through Function
- Get only one of the current categories
- Show Available Taxonomy List with Current Category
- How to get grandparent of a given category
- Additional form options based on category selected not working
- WordPress search only showing a few posts
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- How to recreate a copy of a product category in WooCommerce? [closed]
- List subcategories of active parent category (WooCommerce)
- Updating category template to change how subcategories display
- Create menu / submenu from category subcategory and posts
- Add multiple classes. Different style for each category tag
- Display list of categories filtered by date?
- Add a custom category page in WordPress.org
- Remove the parent name from permalink
- Make parent category an optgroup
- Redirect single article permalink to paginated category page
- WordPress alphabetical A-Z custom post type post result display
- Count category views – Is it possible?
- wp_dropdown_categories not showing option as selected
- How to check if a post belongs to a category that has only 1 posts?
- How do I use just one category’ posts on my home page?
- List only categories i specify
- Author Page – List of categories plus number of posts in that category
- Count tags for a specific category
- wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)
- How can I display tags as categories?
- On the Blogpost I have categories showing, is there a way to exclude a catgegory like ‘Media’?
- Set category page title in custom theme [closed]
- Posts from a category on homepage with category archieves page default css
- How to use wp_list_categories with plugin category?
- ID of last created category
- Theme modification for custom category menus
- Custom css per category and per single post belong in each category
- How Do I Delete WordPress Posts Older Than 400 Days, From A WordPress Category
- Limit Loop to One Category
- wordpress taxonomy query posts
- Subcategory is displayed before Parent Category
- Shortcode to display all the post from a category in a page
- Display all subcategories from parent category
- Custom Loop with certain number of one category
- “Special” category is displayed in all categories or show parent category on sub category
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- How to list all subcategories from all categories but not from a certain category
- add woocommerce archive description if exist
- Can’t display posts by filtering categories using isotope.js
- Get a list of categories, separated by / to display inside the for custom metatags
- Automatically create tags and merge with categories
- Is there a reason to put a product in both the Child and Parent Categories?
- Get_term_meta() always returns false
- How to insert category to post via php?
- How to list all categories a post is in, but exclude current post´s category on single post page
- Get only children category name
- Show Subcategory Name Instead of Parent Category
- Get category id of next / prev post inside the_post_navigation
- No results found for second level category
- get_the_category vs wp_get_post_categories
- Categories in media library
- WordPress Shop and restricting products and categories for some users/groups
- Pass list of categories to JS
- Custom built theme won’t filter categories
- WP_query exclude a category unless it has more than one catagory
- Paginating a list of all posts collected by category titles
- Customize category query in widget
- Page permalink rewrite
- Narrow Down a Shop Page Results Based on a Product Tag in WooCommerce
- How to control order when displaying child categories
- Broken category styling
- Trying to WP_Query a category
- Woocommerce Force the category choice before creating new product? [duplicate]
- Custom EndPoint not working when strip child category in URL