To use the built-in tag functionality with a custom post type, you need to add this argument when registering your post type:
'taxonomies' => array( 'post_tag' ),
So to register a post type events, you’d do (eg):
register_post_type( 'events', array(
'show_ui' => true,
'taxonomies' => array( 'post_tag' )
// etc ...
) );
Related Posts:
- List all the tags from a custom post type
- Find callback function for custom taxonomy metabox
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- How to search from specific post type with tags?
- associate custom post type with tags with specific pages
- Is it possible to make tag archive page specific to Custom Post Type?
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to make a custom taxonomy selectable in post publish area?
- Add Tags to custom post type
- Can custom taxonomies items have attached properties?
- Change Permalink Structure for Tag.php template
- search also in taxonomy, tags and custom fields
- Listing tags from a custom post type
- Show all tags on custom post type
- Best way to specify “article type” in URL
- Display posts with tag for custom post type only
- How to list tags from custom post type attachments?
- Why does my taxonomy have a category style div id?
- portfolio custom type tags support
- How can I create an automatic drop down menu with my tags?
- The Difference Between Categories and Tags and Taxonomies and Terms
- Print all the tags from a custom post type
- add custom tags for custom post type in wordpress
- Advanced archive url structure (category, tag and date)
- Search CPT by tag ids
- How to set “section categories”?
- Tags being removed upon updates to related posts: ACF/Genesis/WP5.4.1
- CPT tags not showing when editing post
- How to add independent “Tags” to Custom Post Type?
- Custom Post didn’t display on tags page
- Add tags to a “pending” post before publishing
- Custom Post Type tag taxonomy “Page Not Found”
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Loop multiple taxonomy in custom post
- Generating List of Tags from Custom Post Type
- Archive.php is not displaying tags
- WordPress Custom Post Type and sort by Tags
- get tags from custom post type
- Tags and Taxonomy links not working for Custom Post Types
- Attaching multiple custom taxonomies to one CPT?
- Display all posts in a custom post type, grouped by a custom taxonomy
- Ordering Posts List By Taxonomy Terms?
- Templates for Custom Post Types and Custom Taxonomies
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Add links to post categories and taxonomies in wysiwyg link modal?
- Custom post type archive with dynamic taxonomy filtering – is it possible
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Custom Taxonomy Breadcrumb Navigation
- Remove “-2” from a Toolset Types URL with the same post name
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Ordering Custom Post Types with WP_Query
- Multiple portfolios with one custom post type?
- Custom Post Type and Taxonomy combination
- Search doesn’t find tags or categories in custom post types
- Taxonomy.php Not Showing Posts
- How to check the terms in single custom post type template
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Posts from all the categories are being displayed instead of particular category
- Disable block with taxonomies at post page
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Sort and filter custom post type posts by custom taxonomy
- Custom post type pagination 404
- List Posts By Custom Taxonomy
- Listing all slugs?
- Creating a non-hierarchical Taxonomy that behaves like categories
- Custom Post Type not showing in main loop
- How to get xml file for a single post type?
- How to change single custom post template by custom taxonomy?
- How to query Posts from a custom post type which contains a custom taxonomy?
- Problem retrieving informations and displaying desired structure with custom post type and taxonomy
- How do I ensure that post_type and Taxonomy use the same slug?
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Not saving custom taxonomy while using ajax
- Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
- Post Tags not working for Custom Post type
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- 404 – Taxonomy Archive Page
- Some posts not displaying by taxonomy term
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Custom taxonomy with custom post type archive page
- Multiple non-hierarchical custom taxonomies frequently used terms showing up in first selected taxonomy box
- Custom URL for Custom Post Type & Custom Taxonomy Term
- I want to create pagination for my custom post type archive that i am displaying with loop
- Showing taxonomies with terms that are attached to custom post
- Saving Child Terms on front end not setting parent
- Custom taxanomy and custom post type – pagination leads to 404
- 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
- Loop with Custom Post Type and Taxonomies
- Using one custom taxonomy.php for two custom taxonomies?
- posting twice from an array?
- Custom taxonomy labels won’t display
- Custom post type with custom taxonomy