WordPress by itself doesn’t provide a built-in way to handle many-to-many
relationships, you have two general ways of creating such relationship:
-
Using a plugin
The best plugin for this purpose is
Posts 2 Posts by Scribu
which is not maintained currently, but It’s bug-less and won’t introduce any problems in a long shot. But please be aware that this plugin requires some coding to get it up and ready and has to be active to work. -
Coding it yourself
I’m not against the above plugin but, If you’re not going to have only one relationship of this type then, I highly recommend you to develop a basic
many-to-many
relationship for it. The only reason for this is the age of plugin and its small community.
Related Posts:
- Row actions for custom post types?
- How to set parent-child relationship between differents custom post types
- Add Custom Fields to Custom Post Type RSS
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Restrict custom post type to only site administrator role
- Check if a custom taxonomy archive page is being displayed
- How to limit the number of terms (terms acts like categories)
- Removing custom post type from link search results
- Search multiple custom fields by using meta_query
- How to add a post from a custom post type as the static page?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How do I Make a custom post type get a custom post template in a plugin
- Check if current user has post in post type and is author role
- Separating Search Results By Post Type
- Including a custom post type in the Archives widget
- Add custom taxonomy to custom post type
- How do I add a custom post type to the Featured Content in twenty fourteen theme?
- Set default option in dropdown of WP_Query?
- How can I add single catogory for custom post type?
- Custom post type loops with different page templates
- Display posts in random post types
- Custom Post Types: Custom columns with Title submenu?
- Automatically Insert Custom Field on Custom Post Type Publish
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Is it possible to associate different kinds of custom post types one to the other?
- List posts AND custom post type by category
- add_image_size for post type
- Archive page for custom post type not working
- How to remove default tag and category options form a custom post type admin menu
- Save an array from drop-down in custom meta box
- Custom meta box not saving
- How to display selected taxonomies by their parent
- How to create shortcode to display custom field value on a custom post type
- Get archive post type name
- How to restrict users and admin from creating new taxonomy terms?
- Convert simple SQL Query to WordPress query
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- Order query using custom meta data
- WP CPT Custom Sortable Column in Admin Dashboard Sort Order Random
- Get taxonomy values based on wp_query results
- Categories of Custom Post throws gives 404
- Ajax Custom Post Filter is not filtering
- Woocommerce search pagination not working
- Completely remove custom post type permalinks (“One Page” website)
- WordPress custom post type split into pages
- Correct procedure for advanced permalinks
- Permalinks: custom post type -> custom taxonomy -> post
- How do i search authors from search form using author’s name
- Custom Post Types hierarchy and rewrite
- How do I know the ‘meta_key’ for ordering my custom post type
- Facebook social publisher and custom post type fields [closed]
- Custom post type’s permalink adds the name of the post type before the post name
- Querying custom post type twice on same page
- Which custom post type does the current post belong to?
- How to hyperlink content from archive page with custom post-type
- Custom post type showing same Post on all Pages
- WordPress Custom Post Type – show only certain posts that have specific taxonomy set
- get comments by current user inside page template
- get parent content inside child posts
- How to get specific post meta by title or id
- Why are some of my custom posts not showing up on my page?
- display custom taxonomies limited to custom post type?
- Populate a custom field dropdown with post titles by author
- Use core block functionality in a custom block gutenberg
- Add form after woocommerce admin order edit
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- Custom Post Type and Taxonomy Loop Output Is Wrong
- Hide text if query has no posts
- Multiple custom post types showing up in edit.php
- How do I get the index for a custom post?
- “Cannot redeclare cpt_reg_tax()” because of functions.php
- custom taxonomy listing returns no posts
- Custom Post Type and Breadcrumbs Conflict
- Writing a custom Glossary plugin
- How to show Custom Post Types under Taxonomy in a new WordPress page template?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Custom Post Type Category Displaying ALL Sub Categories as well
- How to only display all posts to a custom User Role?
- register_rest_field update_callback don’t work for $_FILES
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Can I organise my custom post types by page?
- Display posts of a hierarchical custom post type excluding parent posts
- Wrap an X amount of taxonomy posts in a separate Row in WordPress
- Best Plugins for Complex Index of Resources [closed]
- How Can a CPT in WordPress have a page 2 without an error?
- Get the custom post type slug but remove the rewrite prefix?
- Site loads very slow for archive custom post type page
- WordPress loop for multiple custom post types
- How can I base a query off of the current page post type AND a meta value from another custom post type
- how to add pagination and post query in taxonomy-taxonomy-term.php? [duplicate]
- Pagination not working with custom loop
- How to bring custom meta boxes to custom post types?
- Plugins for putting Custom Post Types into the Menu
- Fallback if statement based on the number filtered from it
- Switched server & domain name, now custom post types won’t save
- Display one post based on ID from $_GET
- Don’t display post if post has empty body
- Posts picking up old Permalinks, how to reset?
- How to query posts by category with the_title();