No problem, the categories and tags are also registered as taxonomies that you can pass to the taxonomies
argument when you call register_post_type()
. Categories are category
and tags are post_tag
. You can also do this later with register_taxonomy_for_object_type()
:
add_action( 'init', 'wpse6098_init', 100 ); // 100 so the post type has been registered
function wpse6098_init()
{
register_taxonomy_for_object_type( 'category', 'your_custom_post_type' );
}
Related Posts:
- How to show custom taxonomy in the permalink?
- Custom Post Types and independent Categories – complex Taxonomy
- Can’t remove front from permalinks for custom taxonomy category page
- Custom post type category permalinks and archive pages
- Category / Custom Post Type permalink issue
- Remove slug from Custom Category Permalink + dual-category permalinks
- Is it possible for post and custom post type to share a category base slug?
- Permalinks: custom post type -> custom taxonomy -> post
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Remove slug in taxonomy url
- Taxonomy, Terms, and Template Files
- Exclude a category from WP_Query
- custom post type and custom taxonomy permalink
- How to filter custom post types by custom category taxonomy
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Help with a TV series Rewrite structure
- Filter get_categories() for taxonomy term in WordPress
- Custom permalinks – post type – hierarchical taxonomy’s
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Permalink Structure problem with cpt and custom taxonomy
- Taxonomy list. Order by a specific custom post type count
- Custom post type permalinks giving 404s
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Add the .html extension to custom post types
- Custom/separate categories for custom post type
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Custom Permalink for Taxonimie and Custom Post Type
- Custom Taxonomy breaking pages permalinks
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Show Post Count of a Category
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Custom post types and permalinks
- Get categories and descriptions from custom post type
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Combining custom post type and post category
- How to create new category for custom post type?
- Permalink Structure CPT With Custom Taxonomy Fails
- Use different taxonomies in different custom post types’ permalinks?
- Custom template won’t load for a custom post type (custom permalinks used)
- Display all posts in main category and 1 subcategory
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- get_category_parents for custom post type taxonomy
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Categories of custom taxonomy don’t show any posts
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Removing custom post type slug from URL
- Customize Custom Post Type URL
- Remove CPT name from permalink but add %category% instead
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom post type, permalinks, taxonomies and blog posts
- List of Posts and Categories
- Custom permalink with child taxonomy terms
- WP the_posts() on single-cars.php get category link
- How to solve this custom post type goes to 404 page?
- Why does my taxonomy have a category style div id?
- Include custom post type custom taxonomies in Categories widget
- How to get all posts related to particular category name on button click?
- WordPress custom permalink and archive link for custom post type
- get_terms() parent, child and grandchild
- Custom Post Type Custom Archive Page Not Working
- Enabling permalinks disables custom page template
- List child categories from parent category on custom taxonomy page
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Retrieve Custom Taxonomies with Description and Slug
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Set priority to permalinks
- How to display custom taxonomy term specific post?
- Modify category permalink to use post type slug
- Changing CPT permalink
- How to set “section categories”?
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Custom post type and taxonomy same slug
- How to create a permalink structure with custom taxonomies and custom post types
- How to structure a website with custom post types and custom taxonomies?
- Custom Post Type Taxonomy – Permalinks generating, but posts not found
- Custom taxonomy in custom post type archive with pagination
- Custom Post type and Taxonomy in post URL error
- Hierarchical taxonomy in permalink structure
- Custom Post Type + Category archive
- Post Editor: display categories from current post type taxonomy only?
- How to retrieve the permalink for a specific (custom) term?
- Trying to create hierarchy between 3-4 custom post types
- Customize category URL
- Permalink Trouble with Custom Post Type
- Custom post type and category permalinks
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- How can I show second most recent post in sidebar, if most recent post is open in the browser?
- How to add categories to a custom post type using wp_insert_post($new_post);
- Modify permalink of CPT archive to support two taxonomies