Solution #1 – home brew
You could
- add a metabox using
add_meta_box()
Example on the bottom of that link. - In your MetaBox callback you could add a Query like this one, but for posts
- Then use the jQuery UI Autocomplete plugin that is shipped with WordPress like explained in that answer.
Solution #2 – from the super market
But you could as well use “Posts2Posts” which can be found
- in the official repo on wp.org
- or on GitHub where you’ll find extensive tutorials in the Wiki and help in the questions/issues list.
Related Posts:
- Combining queries with different arguments per post type
- Create a shortcode to display custom post types with a specific taxonomy
- custom slug for custom post type
- importing third party json feed as custom post type [closed]
- List the categories under custom taxonomy
- Returning search results by relevance, including Custom Post Types
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to replicate some of Drupal Views functionality in WordPress?
- It is possible to get a list of post types asociated to a taxonomy?
- Sorting for each custom taxonomy
- WP Rest API Querying Custom Posts by ACF fields
- Dynamic variable for custom taxonomy in loop?
- Display posts of child category in template
- Custom Post Type rewrite redirects to homepage
- Displaying a specific post in a wp query by post id
- What hook should be used to programmatically create a post only when master post is updated?
- How to show post title outside of loop? [closed]
- Prevent author role from editing all posts in custom post type?
- Want to turn WordPress into a paid subscription directory
- Using WPAlchemy metabox values in another metabox
- adding .current* tags to custom post types and taxonomies
- How to get custom post type menu_name?
- Saving repeated option values in a custom query
- Set up a Child/Parent relationship with a Custom Post Type
- How to output wordpress custom tags separated by comma?
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- convert custom query to wp_query
- How to allow a custom user role to create, edit, delete a specific custom post type only?
- Pagination of Custom Post Types not Changing Posts
- How do I create custom fields for multiple post types?
- custom post type parsed as attachment
- How can I made custom taxonomies relationship?
- How to start a new post with custom Taxonomies already set?
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- How to add custom field to view-edit post type page
- How to prevent a CPT’s slug and page slug from conflicting with each other?
- Pages are not saving due to custom post type
- How to get all tags of a custom post type by id
- How to Add multiple instance of meta box to custom post type
- comment_form() not showing on custom post type
- Losing Nav Active State in Menu
- Manage Columns : order by post_parent’s title
- How to hook one custom post-types post to another?
- Limiting posts_join, where, etc to a specific WP_Query object?
- Custom select query for taxonomies that have posts categorized in another taxonomy
- What is the ID parameter for custom post types in query_posts?
- Number of posts in the archive
- Custom posts template page
- If there is only one post (show elements) else (show other elements)
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- How to setup a single post page for my custom post type?
- Dynamically insert code to custom post type loop
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Custom Post Type Category URL
- Link From Single Post To Taxonomy Term Archive Page
- Do I need to use another custom post type for 1 post that differs from all of the others?
- fetch custom post by meta key if key value is does not know
- Get image from external URL
- CPT as Product in WooCommerce
- Increasing the default number of posts in custom post types
- Better approach for a WordPress Inventory
- Showing all posts and custom post types by using one category
- Issue with Custom Post Types and Single
- Echo custom post meta from options array
- how to redirect to a custom post template
- WP not recognizing custom post type / template
- Displaying Portfolio Filter by Category Order (alphabetically)
- Function to add custom HTML into head in custom post-type list page
- How to create subdomain for custom post type and associated custom taxonomies
- Get previous and next custom post by custom field
- How to get the custom post data using post id in WordPress?
- Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
- Show only Current category and sub category of custom post wordpress
- Creating post template for a Custom Post Type
- Add Custom Field in Product in WP Admin and send to Order Webhook
- Taxonomies are not showing in the category dropdown
- Add Pagination in custom Blog page template
- get_the_terms child terms for current post/custom post only
- Unknown Post Meta Records
- Show Recently Viewed Custom Post to the visitor without plugin
- Custom Post Type Query by user id
- CPT post doesnt shows tags and category on backend admin page
- Adding a nav menu for a custom post type
- WordPress API only returning HTML
- select custom post type on regular post
- Custom taxonomy- only output relevant terms
- Post types showing tables…Can I do that?
- Registering an optional custom post type from a plugin
- Dropdown switching subcategories portfolio
- Weird capabilities / roles behavior
- How to Arrange Support => Thumbnail
- Filter custom post type by tags
- Displaying posts exclusively in their category (not parent)
- Can’t make permalink of CPT work
- Issue with permalinks for custom post type
- Setting a Master Menu on a Custom Post Type
- Linking from a list of custom post type items to a single – get_post_permalink not working correctly
- Remove plugin’s custom post type archive page and single pages [closed]