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
- 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
- Update menu when saving settings
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- custom post type not showing in menu
- 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
- If post has custom field then display css-class
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Adding a custom post type taxonomy template in plugin
- Replace text in post from cvs
- Insert and then update post_type by wp_update_post
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- add category name to permalinks on product page /category-name/product-name
- How can I make a custom post type sticky?
- Action or Filter Hook for a Custom Importer
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Broken featured images are uploading from frontend
- Addition of custom option panel crashes Media Library & Admin Area
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- Tracking changes in admin-page so user gets warning when leaving the page
- How to change wp prefix for custom post type only?
- Send notifications to custom post author when custom post is edited
- Metabox not show in categories custom post type cmb2
- Taxonomies relations
- Post injections into Site Origins Page builder [closed]
- 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
- custom post type and non-standard gallery
- Make a custom_post translatable
- How to change permalink to include custom post type
- How to Add multiple instance of meta box to custom post type
- How can you use one database with multisite
- 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?
- Custom fields for custom post type
- Custom Post Archive is not working
- How to add multiple images to a custom post type without plugin [closed]
- It’s possible to hide body copy box for a custom post type?
- 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
- How to create multiple editor?
- Custom post type, have only my meta boxes
- Add categories to a page with out using Custom Post Types
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- ACF in wordpress
- How can I have different content for different countries?
- post_parent in custom post type
- Pods CMS: How to add custom column to Adnvanced Content Type
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Pagination hitting 404 page on /page/4
- Custom post type’s posts are not showing anywere but in xml sitemap
- Can’t delete a custom post in front end with custom role
- Unable to format dates to put in event calendar
- Post URL based on Custom Post Types variables
- custom permalink for post only not custom post types
- Filter content in shortcode
- Get image from external URL
- How to create groups like that in buddypress?
- Post that populates itself (almost) automatically using data from imported excel file
- I broke it! Custom post type archive gets redirected to home
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Custom Fields through plugin in a Custom Post Type
- Can’t save custom post type fields
- Enable shortcodes on custom post type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- How to Create movie schedule by custom post type query
- 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
- Remove custom post type generated by a plugin (The Events Calendar) [closed]
- Show custom taxonomy not in submenu
- Understanding the workflow of form creation plugin
- Adding CPT changes entire layout of my site except for the archive of that CPT
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- Problem with type plugin and custom taxonomies
- Use Custom Post Type as Storage Container Without Registering It
- Loop carousel slider in wordpress
- How to Fix WordPress 500 Internal server error due to custom post type
- Custom Fields as Post Type Options
- get_post_types doesn’t work in plugin
- next/prev post link by relationship post 2 post
- How to display custom post type in a submenu?
- Plugin Error on activating
- Custom Post Type parent slug as menu item
- Customizing a plugin function using a hook
- Custom Info Box at end of posts?
- Add Excerpt On Quicksand Plugin
- Author profile comments system
- Custom Post Types in plugins?