add this code below in your plugin after register post type
register_taxonomy_for_object_type( 'category', 'casestudy' );
for more read on WordPress codex here
Related Posts:
- Display all posts starting with given letter?
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Custom Post Type Settings page, choose page to display archive
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- How to order posts of a custom post type by date DESC in dashboard Admin?
- How to filter by custom post type on Gutenberg “Latest Posts’ block
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How do I remove all the metaboxes for a custom post type?
- How To Set Custom Post Type Title Without Supports
- How to list/show all custom post types regardless of category?
- Slug for custom post type archive
- I have a CPT that have menu_order enabled, how can I make the menu_order values unique so it won’t have duplicates
- Add pre-existing meta box to new custom post type
- Use Custom Database with Custom Post Type
- Combine tax_query and meta_query in WP_Query
- automatically save custom post type title as a category
- IF statement in a do_shortcode
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- How do I display custom post types through a common taxonomy?
- How do you remove slug altogether from custom post type?
- Paginate_links won’t create the right links on a taxonomy filtered custom post type archive
- Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- WordPress or Drupal for data-heavy content site
- Unusual Custom Post 404 problem (NOT a permalink issue)
- Relative URLs for a particular custom post type?
- Custom Post type in Author.php
- How to add and display reCAPTCHA in password protected form?
- Is there a way to get a file URL from the relationship ACF field?
- get_comments not working on custom post types
- Custom Post hierarchical to custom taxonomy
- Is there a way to enable bulk edit and quick edit on custom post types?
- WordPress showing archive.php instead page
- Query Multiple Custom Posts by Custom Fields
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Specific query for custom post type
- Displaying Custom Posts on a Page
- API Rest Custom Post Type doesn’t return all data
- Permalinks for custom post type
- Custom REST endpoints for a custom post type with custom fields
- WordPress Custom Post Type is not working properly
- Rewrite rule for Custom Post Type Page as a parent
- Multiple post types
- Permalinks: custom structure for taxonomy – tags?
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- Ordering Submenu Pages in WP 3.1
- Call to a member function add_rewrite_tag() on null on register_post_type [duplicate]
- ACF in wordpress
- Theme independent plugin by using default page template
- Designing a custom post type with a minimum number of meta fields
- Display Only Certain Category In a Custom Page Template
- Assign CPT archive page attributes
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- hide specific div on single.php [closed]
- I want to fetch custom post data based on it’s id i fetch from select drop down [closed]
- Add term slug in URL of custom post type details page
- Allow anonymous comments just in a custom post type
- Custom post type and custom taxonomy 404 on page 2
- link featured image to external link
- Ideas on how to organize a project [closed]
- Custom Fields not showing up for custom post type
- Database alteration: users who voted
- Apply Post Class to Custom Post Type
- Problems making shortcode with custom post types and taxonomy
- Loop Custom Post Type for Single Author
- How do I enforce a specific custom post type on the loop
- WYSIWYG on custom meta boxes while disabling main editor?
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Add Content Column to Custom Post Type backend
- Custom fields for post or terms which don’t update on post update
- How To Display Posts Of Custom Post Type At Page Template
- Set up a WP Cron scheduled event to update calculated ACF field
- set object terms after some some time of published post – functions.php
- How to use multiple Meta Field from CPT as Post permalink
- How to display an admin-notice after custom post type edit modification
- Posts per Page on custom Taxonomy Template
- Dynamic page for nav items used as filters
- How to convert hierarchical Pages to hierarchical Custom Post Types? Slugs get a number as if they were duplicates
- Exporting CPT from dev site and import into live site?
- How to add custom supports for custom post types?
- WordPress Custom post type slug rewrite
- Attach several custom posts to one meta field
- Show first posts with custom field not empty and order all by title
- Certain number of posts with certain excerpt length
- WordPress add taxonomies/terms list as a menu in archive page
- query and paginate multiple post types
- Query custom post type and showing its content
- Using a Taxonomy in Two Spots in a WordPress Post
- Custom Query With Multiple Meta Key Value
- insert a taxonomy for a custom post type
- Issue on adding Icons to Custom Post Type
- Query a custom taxonomy for certain posts
- how to remove user name and date in post page
- How to output the content of a Custom Post Type from a drop down form?
- Removing custom post type name in single article URLs
- Add /blog to the “post” post type url
- Navigation links to posts in current term shortcode
- One custom post isn’t appearing
- Taxonomy Archive URL + Template