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:
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- How do I append multiple taxonomies to the URL?
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to limit the number of terms (terms acts like categories)
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Taxonomy term in permalink
- Remove quick edit for custom post type
- Count posts that have specific taxonomy term attached
- Taxonomy archives based on Custom Post Type
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- Get the ‘slug’ of a custom taxonomy
- How would I leverage custom Taxonomies in this scenario?
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- create a back-end wordpress content submission using custom post type
- Disable WordPress Recognizing Path as Attachment
- Include custom post type in “all posts”
- Displaying related posts in a custom post type by a custom taxonomy
- Get all taxonomies for all post types
- 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
- How to list custom post types?
- How to filter out post type meta?
- Custom Post Types and Categories?
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Query Multiple Taxominies Across Multiple Post type’s
- Tag page with Custom Post Types not returning any posts
- Update permalinks when new category added to custom post type taxonomy
- Custom Taxonomy back-end customizations
- Taxonomy custom post type URL
- How do I display the taxonomy for a custom post type in an array
- How to conditionally redirect to the post from a taxonomy page?
- Suggested Post and Taxonomy structure
- How do I share categories across multiple post types?
- Multiple tag cloud filtering
- 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
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- Rewrite custom post type with taxonomy
- My custom taxonomy is only displaying 1 of 3 terms
- Shortcode to return single custom post based on post taxonomy
- 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
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- Can I use the ‘category’ taxonomy for both posts and a custom post type?
- Menu for taxonomies and posts belongs to taxonomy
- How to automatically create a terms based on each post of a post type
- CPT : Next or Previous term link when has not adjacent post
- Display Custom Post Type Based on Taxonomy With WP_Query()
- How do i enable categories for my custom post type?
- Custom taxonomy returns 404 even with saving permalinks
- Create custom post type categories
- How to add CSS class field in Custom Taxonomy?
- Taxonomy doesn’t follow slug permalink structure
- Set a Default CPT taxonomy by taxonomy id
- how to create custom taxonomy drop downs for parents and child
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- How to manage a dynamic multi-level page hierearchy system?
- Get name CPT with slug taxonomy
- Categories manage
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Automatically / dynamically populating tags in custom post type
- Filtering custom post using Ajax and taxonomies, keep getting 0
- Changing an item in drop down after 5 latest posts per taxonomy
- Query for a custom post taxonomy
- Organising custom taxonomies and custom post types
- Update Cateogory Taxonomy Count for Attachment Post Type
- Filter Term By Parent Term – Custom Post Type
- get children from current variable (taxonomy) via shortcode
- Related posts by taxonomy [duplicate]
- List all posts from custom post type by taxonomy
- Taxonomy count per Post type
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Sort by Custom Post Type (Multiple Loop)
- How to display elements of different post types?
- How to display only taxonomies of custom post type in a page?
- Custom Post Type order Title ASC
- get_the_term_list() wanting to loop through the returned values
- Displaying child taxonomies
- Echo post count of CPT with current taxonomy
- Get all active posts that are tied to a custom taxonomy for a custom post type
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?
- Add taxonomy or category slug to custom post types URL