I have found a solution with ACF plugin, this plugin allow to create relationships between post types when one of the post types is created with php.
You can download the plugin from here:
Related Posts:
- Create metaboxes based on custom post type
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- How to add custom content template part for a custom post type on main query using a plugin
- Change capability type of post type registered by plugin
- echo value from ‘select’ field type into page template using cmb2?
- How to use a dedicated template for the Custom Post Type from a plugin?
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- List events by month
- Date query for a custom meta field
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Change plugin’s has_archive = true to false?
- Remove POST_TYPE from custom post type permalink
- Change upload_dir folder at a certain cpt but cant change back
- Best practice for adding posts in bulk
- Hide Meta Boxes for Non-Admins
- How to have the right design for a custom post type without accessing themes
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- how to add extra meta box or textarea into custom post types
- Can’t get order_by meta_value_num to work properly
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- check if post title in a custom post type exists in page
- How to hack YARPP plugin to find related posts for custom post type?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Custom posts don’t work
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- single-{cpt}.php ignored
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Action or Filter Hook for a Custom Importer
- Addition of custom option panel crashes Media Library & Admin Area
- Send notifications to custom post author when custom post is edited
- Taxonomies relations
- Custom Post Type + Categories
- WordPress randomly shows 404 errors
- Custom Post Type slug same as page name
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- Shortcode for CPT post content in a page
- Make a custom_post translatable
- Adding custom image sizes and post types to a plugin or to a theme?
- How can I list Custom Post Types created with the Types plugin under categories?
- To use custom post types, or not to use
- Autocomplete or suggest from post titles inside plugin
- Show all tags on custom post type
- How to hook WP initialization without modifying functions.php
- ACF in wordpress
- Pods CMS: How to add custom column to Adnvanced Content Type
- Pagination hitting 404 page on /page/4
- Custom post type’s posts are not showing anywere but in xml sitemap
- Unable to format dates to put in event calendar
- Filter content in shortcode
- Override Plugin Custom Post Type ‘single’ view
- Custom post type in Custom widget – $listItem
- Add custom columns in custom post type browse page
- Validate Custom Post Type fields
- Custom Plugin – Query CPT – Display Results
- Plain links in single-class.php and archive-class.php not working
- Modify a plugin function output from another plugin
- how can i show a google map in custom post type
- Custom post type archive – error in nav-menu-template.php
- Why is this function so slow?
- Permalink URL connection between two custom types
- Taxonomy counter on Taxonomy List(plugin)
- Is it possible to arrange Custom Post Types from CPTUI into a Folder?
- Restrict Custom Post Type to One Item
- Custom Post Type Front Page Gives 404
- Multiple useres editing specified content
- Filter Custom Post Type Posts by Taxonomy
- Insert custom taxonomy into category query
- Custom Post Type single post type shown in theme single.php
- Default custom post type url
- Run query on specific admin options page and send results to select field in another function
- Include images from pages in wp search.php results in default wp search
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Enable shortcodes on custom post type
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- WP_Query return highest number only
- Display subcategories in the filter on CPT
- Understanding the workflow of form creation plugin
- Use Custom Post Type as Storage Container Without Registering It
- Loop carousel slider in wordpress
- next/prev post link by relationship post 2 post
- How to display custom post type in a submenu?
- Plugin Error on activating
- Add Excerpt On Quicksand Plugin
- Author profile comments system
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- Manage theme related custom posts
- Plugin – read post into blank page [duplicate]
- How to Create Short Code Using Custom Post type
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- Custom Post Type to Plugin
- Woocommerce product page is not showing custom css [closed]
- How to get ‘Products’ on home page?