You need to add a taxonomies
argument to your registration array:
'taxonomies' => array('category')
That is:
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' ),
'add_new_item' => __('Add New Product'),
'edit_item' => __('Edit Product'),
'search_items' => __('Search Products')
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'products'),
'taxonomies' => array('category')
)
Reference:
http://codex.wordpress.org/Function_Reference/register_post_type
Related Posts:
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to completely disable a taxonomy archive on the frontend?
- How to limit the number of terms (terms acts like categories)
- Taxonomy count per Post type
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Taxonomy term in permalink
- Query Custom Post Type taxonomy type based on page
- Taxonomy + post_type
- Using 1 taxonomy for multiple post types?
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- How would I leverage custom Taxonomies in this scenario?
- How to get a list of term names of the custom post type im currently on in single.php
- How to show term-specific post list, without posts associated with child terms?
- Group list of posts by taxonomy and allow for pagination
- Custom Post Type with Custom Title
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Disable WordPress Recognizing Path as Attachment
- Get the most popular terms for a custom post type
- Registering tags taxonomy for a custom post type
- Custom post type taxonomy template
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- How do I display custom post types through a common taxonomy?
- Paginate_links won’t create the right links on a taxonomy filtered custom post type archive
- Taxonomy Templates
- Category page only displaying the posts from a custom type
- Bug when editing custom post type category?
- Having trouble understanding custom post type and taxonomy :/
- How to filter out post type meta?
- tax_query returning all posts instead of selective posts in WP_Query
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Query Multiple Taxominies Across Multiple Post type’s
- Update permalinks when new category added to custom post type taxonomy
- Custom Post Type Taxonomy Filters
- Taxonomy custom post type URL
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- How do I display the taxonomy for a custom post type in an array
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Suggested Post and Taxonomy structure
- Custom post with more than one custom taxonomy
- Get the taxonomy of a post hierarchically
- How to get list of taxonomy slugs ordered parents>childs?
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Multiple tag cloud filtering
- Get url.com/post_type/taxonomy/term work!
- Different Category system needed for the Custom Post Type
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Linking from CPT page to taxonomy.php
- Page not found for custom post type UI plugin and taxonomy
- Categories and tags for custom post types
- How to get all Custom Post Type Filtered by one Specific Taxonomy Term
- Filter second dropdown (tax) based on first dropdown (cpt)
- Archive-posttype.php isn’t loaded
- How can I create an automatic drop down menu with my tags?
- List custom taxonomy as navigation – taxonomy pages with all it’s posts?
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Get assigned post categories
- Query custom post types & Taxonomies and list them in a table on a page
- Custom taxonomy template shows 404 Error
- Custom Post Type API doesn’t show taxonomy or category array
- How to constrain the results to a specific post_type on tag archive page?
- Custom Post Type with modified permalink structure results in 404
- Problems making shortcode with custom post types and taxonomy
- wp_dropdown_pages with tax_query clause
- Building a Data Intensive Website with WordPress
- Custom post type, taxonomy and admin bar
- How to get post count of specific taxonomy that have store name & category
- Duplicate slug/permalink issue while adding same post name
- Do post types share the same records using the same taxonomy?
- Custom post type archive page filters
- Filter taxonomy by CPT
- Custom permalink structure for custom post types including multiple taxonomy
- get taxonomies from terms
- How to group custom posts in admin menu based off taxonomy/postmeta
- How to get current post type?
- Taxonomy counter on Taxonomy List(plugin)
- Get all posts for custom taxonomy term
- Multiple Custom Post Type with different Taxonomies
- Wrap an X amount of taxonomy posts in a separate Row in WordPress
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Taxonomy’s title
- Display all posts from single taxonomy term
- Connect 8 Taxonomies to One (Main) taxonomy. How to?
- Filter By Term Not Working – Custom Post Type
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom Search not working
- Custom post type post taxonomies
- category_name not working in WP_Query
- Problems with custom post type and hierarchical permalinks
- How can I set up the URL for a category archive for a custom post type?
- Structure of custom post type / taxonomy?
- List custom taxonomy terms
- Display associated taxonomy child name on single CPT page
- Issue On Listing Woocommerce Parent Tag List
- 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?