Alternatively to Kaiser’s answer, when you register the post type, simply use the taxonomies
attribute:
register_post_type( 'my-cpt', array(
...
'taxonomies' => array( 'category' ),
...
) );
Details on register_post_type()
can be found here in Codex.
Related Posts:
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Delete Post With No Traffic?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- WP get_permalink Return Wrong URL
- Is there a plugin to display certain posts on certain pages? [closed]
- plugin for wp_list_categories with posts
- Replace existing pages with new pages, keep menu links
- Use plugin or custom post type for game score functionality
- Output HTML only on individual post view
- View Private Published Page with URL Code (no login required)
- Redirect to another page using contact form 7? [closed]
- Moving FB comments at the end of page
- How can i summerize posts or news automatically in word press site?
- Delete data from custom table when deleting a post
- Link Posts to External URL
- Style WordPress Custom Post Type Single Page
- Posts are deleted everyday at night
- Issues with Post 2 Post Plugin
- Get page type to display content
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- Looking for membership style plugin with edit option [closed]
- Best collection of code for your 'functions.php' file [closed]
- Should all plugins be encapsulated in a Class?
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- OpenID for WordPress 3.x? [duplicate]
- Get a button for in the Editor
- How to get posts by content?
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- How to add product images using script?
- Setting up widgets in wordpress with a unique ID for the after_title argument
- post expire after x days
- MailChimp integration that allows users to select from multiple lists [closed]
- Set attached to state
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Bulk Image Uploader to create new post from each image [closed]
- Copyright messages for a particular set of pages
- Display comments of users on single page
- Post query – show posts from specified day and month and whole years
- Support for simultaneous editing
- how to load the language file in plugin?
- Accessing post’s meta data based on user’s click of a post
- Solutions to repost categories into multisite blogs?
- Translating long texts with html formatting
- custom payment gateway in woocommerce failed to connect to remote api server
- Send reply with pre-prepared answers
- Anspress Customization: How to show logged in user votes on a single answer?
- How create Group Blogs based on user created Groups
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- how to add text to posts from tags
- Would Gutenberg be considered a PlugIn?
- pagination on data fetched using SQL query
- Basic gallery plugin suggestion [closed]
- How do I publish portfolio items with a future date?
- Free paypal cart solution [closed]
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- I am trying to make a field show and save from quickedit screen
- Flickering sidebar when scrolling page [closed]
- Where Should i write the code for wordpress ajax voting?
- Post status doesn’t update to ‘future’ every time?
- WP::is_main_query() Not Working
- Hook Scripts and Styles in WordPress
- Widget where it can make changes to the container
- how can authors to define custom pages?
- Can’t create new CPTs when menu hidden
- Gathering all Custom Post Type posts in to array/object the proper way
- Multiple Post Thumbnails Plugin – Need help with code
- Custom Post Type, Custom Columns List
- How to prevent plugin, theme installation failures on WordPress?
- Update existing post dates to random dates and time
- WordPress search input in database, to edit information via form and update the database
- Adding category base to url in custom post giving 404?
- Post source link plugin – small modification
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- Load my Inline js footer area
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- How to echo a PHP Code After the Content
- WordPress Product Detail and catalog
- Woocommerce list variations that are added already to cart in Single Product
- Flexslider empty slide
- WordPress CPT Url metabox collection
- Identify if the_post hook is being called from the admin post list
- Share on social media created listing after submission
- Translation plugin with default language?
- How to Save settings of custom tab product page in admin side in a database?
- Custom pages with plugin
- Displaying friend’s posts only
- Changing the body of mail sent to new user registration
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Hidden Some Setting on Post or Page [duplicate]
- WordPress list child pages of custom post type
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Embedding BitBucket Code in Posting
- WordPress Code Access to Restricted Content without Registration
- How to delete unnecessary custom post types in the UI
- What can I do to customize a widget provided with this plugin? from where have I to start?
- How to pre-set WordPress settings for specific posts?
- Can i have limit posts on a specific category and automatically remove older ones?
- How to disable plugin capability : “create new category”