To share a taxonomy between multiple post types when you register her, you have to pass an array with the slug if all posts types that she will belong to.
Example:
register_taxonomy( 'category', array( 'work', 'another_cpt' ), $args );
But in your case the category taxonomy is already registered, so you have to do the following:
function add_category_to_work_cpt(){
register_taxonomy_for_object_type( 'category', 'work' );
}
add_action( 'init', 'add_category_to_work_cpt' );
Related Posts:
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Creating “static” taxonomies to choose from, inside custom post type?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to list all categories and tags in a page?
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- How can you make permalink work for custom post type and taxonomy?
- How to get a list of term names of the custom post type im currently on in single.php
- List all custom post type posts from a given category?
- Custom post type taxonomy template
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category page only displaying the posts from a custom type
- Show Post Count of a Category
- Custom Post Types and Categories?
- How to create new category for custom post type?
- Get Post Primary Category
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- How to get the post type from a category id?
- How to show CPTs in term archive
- Display all posts in main category and 1 subcategory
- Show category ID on custom post type
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Limit amount of posts made within a custom taxonomy
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Categories and tags for custom post types
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- Invalid Taxonomy
- Need help deciding on a taxonomy
- Get Posts by Category, Tag , and CPT Taxonomy
- Get assigned post categories
- Default Category Page not showing custom post type which has taxonomy category
- Categories won’t appear on custom post type
- Custom Post Type with modified permalink structure results in 404
- Custom post type, taxonomy and admin bar
- Displaying taxonomies as category links within sidebar and creating pages for these
- Custom post type archive page filters
- How to show related posts of category on post within custom posttype
- get taxonomies from terms
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- how to create custom taxonomy drop downs for parents and child
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- I can not call the categories of custom post type
- How to create groups like that in buddypress?
- Update Cateogory Taxonomy Count for Attachment Post Type
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- category_name not working in WP_Query
- How can I set up the URL for a category archive for a custom post type?
- Custom Post Type order Title ASC
- show only one category posts in admin
- Is it possible for post and custom post type to share a category base slug?
- Add taxonomy or category slug to custom post types URL
- How to determ a custom post type url?
- Use the_taxonomies() to create a simple list
- Is there a way to list posts of only a certain category
- Query Custom Post Types & category_name?
- How do I get the child category posts from a custom post type?
- Return array of categories to php function for current post
- Hierarchical Custom Post Types – Show only parent on tax archive?
- wp_list_categories() – current-cat class also inside posts?
- list taxonomies from a custom post type
- Taxonomies relations
- Post injections into Site Origins Page builder [closed]
- Full Custom Post Type List Organised by two Taxonomies
- Not sure if I should create multiple custom post type [closed]
- Adding custom taxonomy in same menu place with two custom post types
- Multiple pages for posts?
- Category.php template for custom posts
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- List Posts By Custom Taxonomy
- How to Display Posts From Category Within a Custom Taxonomy?
- Category Icon on custom post type
- Pagination hitting 404 page on /page/4
- Group Custom post type in a taxonomy page by its child taxomony
- Get child categories of custom taxonomy category?
- Create query for both custom post type and category
- Custom taxonomy query showing more than 4 posts
- wp_dropdown_pages with tax_query clause
- Building a Data Intensive Website with WordPress
- Display all Categories except ones with a specific parent
- Show Custom Post Type based on Category on Archive Page
- Get all posts for custom taxonomy term
- Help with Travel Guide Setup
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Project Category Heading
- Getting Custom post category from Form
- How can I generate a list of post-type specific categories?
- Front end page submission form does not attach custom post type
- Category slug not showing for Custom Post Type
- Get a list of categories ids
- How do i get the taxonomy term name on the CPT archive page?
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Is there a function that replace category name with a icon?