When you use register_taxonomy()
, the second argument is the object_type
argument, which accepts either a string or an array. You can pass this an array of objects to apply the taxonomy to, and it will be common between those. So, for example: array( 'cpt_slug', 'post' )
would give you a common taxonomy between cpt_slug
and post
.
If you want to add the existing taxonomies to a new post type, you can use register_taxonomy_for_object_type()
Related Posts:
- How to create a custom search for custom post type?
- Extending the search context in the admin list post screen
- Adding a Custom Post Type into the menu screen
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- what is the correct way to compare dates in a WP query_posts meta_query
- Use register_post_type() to modify an existing post type
- How to add custom columns to Custom Post Type admin screen
- Custom Taxonomy with Custom Post Type Finds No Posts
- Why The Init Hook For Custom Post Types
- Apply template to custom post type
- Custom post type metabox array
- Copy one CPT to another one in WordPress
- What’s the purpose of ‘taxonomies’ parameter in register_post_type()?
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Categories assigned to custom post type not found
- Nav menu of all posts in a custom post type
- Query by 2 values of a repeater ACF field
- Undefined index: at_nonce in custom post metabox
- Using multiple instances of wp_editor in Custom Post Type admin area
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- How to search from specific post type with tags?
- Restrict categories to a custom post type
- Creating Custom wp_dropdown_categories
- Custom Taxonomy not showing as option on custom post page
- Getting all custom posts with a certain category
- Displaying Metabox value (custom post type taxonomy)
- Custom Post Type order by modified date and custom meta field issue
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- add_rewrite_endpoint() and Custom Post Type Archive
- Custom post type archive page pagination
- Get Author for Single Post in Custom Post Type
- Navigation menus not showing because of custom post type filter
- Custom Post Type, Saving Multiple Checkboxes
- Add TinyMCE to CPT metaboxes in 3.1?
- How do I fix permalinks for custom post types that has the same slug as a page?
- How to call custom posts
- get_attached_media() on author page not working
- Custom Post Meta Data in Buddypres Activity Stream
- Getting posts under the custom post type ui category
- Add archive slug to default post post type
- Custom Post type and permalink settings
- How to order separated Custom Post Search results
- Set URL link to featured image of custom post type
- Automatically generate a delete post link and provide it to post creator
- Custom taxonomy and custom post type – wrong permalinks and template
- How to display custom WP menus?
- What to and how to proceed with CPT to make DB small and efficient?
- Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
- Custom taxonomy returns 404
- Rewrite CPT child page URL to support query var
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- PHP Code to Display Term URL & Name of a Post Under a Custom Post Type
- Problems wp_insert_post and save_posts filter
- Unable to link categories to custom post type using standard function
- Cant get paginations on single.php to work with my custom post types
- Is it possible to show multiple (custom) post types at the wp homepage only by using pluging code?
- Loop to display custom post type from a custom Taxonomy
- the_content(); of custom post type treated as an array or object
- Saving data for different custom posts
- Getting a custom post’s custom field based on another custom post’s custom field select
- Conditional tag only for front of custom post type
- wp_get_canonical_url showing first url of the post for custom page
- get the permalink never return with empty value
- Custom post type is using the index.php template
- Display 1 Post per taxonomy with polylang
- Blank search results on custom search
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- using the loop in custom meta is messing up ‘add new’ post type
- Custom Post Type permalink doesn’t match post permalink
- Custom Post types and their corresponding theme files
- Custom archive page for custom taxonomy and pagination issue
- Ordering by meta value not working
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Admin Post Table – Remove Title Edit Link
- Comments on posts with new custom post type redirected to another post
- Custom Post Type / Taxonomy not displaying archive
- Remove plugin settings from post creation page for a user role
- How can I output a post’s custom taxonomies to a two column list?
- Mandatory excerpt for custom post type
- How to link custom field of two custom post types?
- Set archive of custom post type like ‘posts’ page in reading settings is set
- Pagination with a custom post type
- taxonomy – templates are not loading
- week days sorting based on starting day
- Want to display my custom date archive to date.php but dont know how
- Ordering Posts List By Taxonomy Terms?
- Archive of post format for Custom Post Type
- Display custom post type archive on page.php template
- BCC email to subscribers
- Is it possible to have public posts in a non-public custom post type?
- meta query always fails even if data is correct
- Pulling Content from Existing Database
- Exclude Custom Post Type from shared Custom Taxonomy
- Get custom post type where taxonomy..
- Custom post type submenu sorted by specific meta_key & meta_value
- Pagination not working with custom loop
- Creating Multiple Admin Widget Page with Calling One Sidebar
- Loop doesn’t work in single-product.php page but works at normal page
- How to filter homepage posts by popularity? [closed]
- Want to know about entries in wordpress [closed]