As you have already pointed out in your question, custom taxonomies are the way to go here. For this taxonomy to behave like the build in taxonomy post_tag
, you need to set the hierarchical
parameter to false
.
To make these taxonomy available to only your two specific post types, you need to specifiy this when registering your taxonomy.
Example
register_taxonomy( 'taxonomy_name', array( 'post_type_1', 'post_type_2' ), $args );
The codex (register_taxonomy
) have a lot of good examples how to register a custom taxonomy. If you still get stuck after this, you should update your question with your code and exact details where you are stuck
Related Posts:
- WordPress Custom Post Type and sort by Tags
- List all the tags from a custom post type
- Get Custom Taxonomy ID within loop
- Load custom posts with same tag as page
- Get custom post type by category in a page template
- Find callback function for custom taxonomy metabox
- Categories under custom post types doesn’t show properly
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- Filter posts with ajax form and checkboxes
- How to search from specific post type with tags?
- How to get only one category of custom post type?
- Get all taxonomies for all post types
- Append taxonomy terms as class names in markup?
- Show ACF field from custom taxonomy and display on the single template
- associate custom post type with tags with specific pages
- Is it possible to make tag archive page specific to Custom Post Type?
- List terms from Custom Taxonomy
- WP_Query search posts by custom post type and custom taxonomy
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to make a custom taxonomy selectable in post publish area?
- How to output wordpress custom tags separated by comma?
- Add Tags to custom post type
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Change Permalink Structure for Tag.php template
- get_posts of Custom Post Type AND Custom Taxonomy
- Received nothing after executing AJAX post function
- search also in taxonomy, tags and custom fields
- Custom Tag Description unable to display just below and outside of the Loop
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Categorize custom post type
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Get term name without a foreach loop
- 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?
- Control content before and after custom post type loop
- Why does my taxonomy have a category style div id?
- Get custom post type categories to show up in menus
- portfolio custom type tags support
- Show current custom taxonomy
- Different options per post type in WP_Query
- Creating a non-hierarchical Taxonomy that behaves like categories
- When I choose category from dropdown then everything working fine.But in backend it checked only child not parent [closed]
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Print all the tags from a custom post type
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Using page title as a link to term archive
- Advanced archive url structure (category, tag and date)
- Setup page template array in a custom post type
- How do I ensure that post_type and Taxonomy use the same slug?
- Custom post type page with parameter
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- set object terms after some some time of published post – functions.php
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Check that a slug is present in the get_terms request
- Search CPT by tag ids
- Assigning categories to custom post types via a front-end form; only works for native post type
- 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
- pagination problem listing custom post types of taxonomy in wordpress
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- How to add independent “Tags” to Custom Post Type?
- Show parent category and subcategory once in while loop
- Custom search for a custom post type in WordPress
- Custom Post didn’t display on tags page
- Custom Taxonomy – fields
- The most recent post of custom taxonomy
- Add tags to a “pending” post before publishing
- Show tags of custom post types in WordPress
- Show custom taxonomy not in submenu
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Custom Post Type tag taxonomy “Page Not Found”
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- How to Fix WordPress 500 Internal server error due to custom post type
- Custom post tag images not displaying with ACF
- Loop multiple taxonomy in custom post
- Generating List of Tags from Custom Post Type
- Archive.php is not displaying tags
- Values inside a custom field to determine which category posts to display
- Exclude Custom Post Type from shared Custom Taxonomy
- Show Custom Post Type taxonomy term that matches custom field
- Order by custom field attribute
- Return all wordpress custom posts in specific multidimensional array
- Looping taxonomy in taxonomy?
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- posting twice from an array?
- Custom Loop for custom post type. Compare by meta_value?
- get tags from custom post type
- Query Custom Post Type by Tag
- Tags and Taxonomy links not working for Custom Post Types
- Inserting two categories
- Attaching multiple custom taxonomies to one CPT?