Alright so after waking up and actually thinking (lol) it was quite simple and I was way overthinking it.
In piotnet grid you can query a custom wp_query. I added this to the box
array(relationship => [
//the meta box relationship id
'id' => 'relationship-between-cpt1&cpt2',
'from' => get_the_ID(),
])
in the preview window on piotnet grid it will look broke but once you put it into a post it works just fine.
Related Posts:
- meta_query with meta values as serialize arrays
- Order by multiple meta key and meta value [closed]
- WP_Query with checkbox meta_query
- How to grab metabox value in wp_query meta_query key
- Meta box dropdown of custom posts
- Custom Metabox data slow query on Admin init
- New WP_Query loop in admin causes problems
- Posts query according to meta box date
- create metabox to activate slider
- How do I add an item to the WP admin menu?
- Help with if statement inside while loop
- wp list pages using meta box value
- Add metabox if there is at least one post available
- meta_query with meta values as serialize arrays
- update_post_meta() not updating
- Query by meta value (add a dropdown of all values)
- Wp Query sort order
- Saving custom fields for WP_Query to retrieve
- How to show all the associated posts with specific date of data metabox?
- display post multiple times based on array of dates
- Query to get all the posts of more than 2 meta_value having same meta_key?
- WP_Query orderby date not working
- Best way to detect if you are in a SINGLE POST page
- Better way to get tag stats?
- Query two taxonomies via URL or link?
- wp_query order by title
- Sort posts by custom taxonomy name
- Wp_query order by multiple custom fields?
- Would this post meta be better added to the post table rather than post_meta table
- How to exclude products by tag from woocommerce shop page?
- Filtering posts by custom field value not working
- wpdb get results doesn’t work with variable
- Query Ignoring ‘exclude’ Parameter?
- Custom pagination with WP_Query generating 404 error
- Query post with meta_query where date is not in future
- Apply CSS class to every second database record [closed]
- pre_get_posts order by not working
- merge two query arguments into one WP_Query call
- Adding a parameter to the default query
- Using WP_Query in “parse_query” or “pre_get_post” in Posts2Posts
- How do I change the order (ASC and DESC) in the following retrieval method using WP_Query?
- While creating Block Themes in WordPress, how can I query custom posts for an Archive view?
- How To Fix WP Query Returns Results But Shouldn’t?
- Weird orderby => post__in issue
- How to extract specific post
- How to query custom post types with mixed AND & OR statements for custom fields
- Custom post type archive pagination query issue
- 2 weeks ago from meta query meta value
- WP Group posts by year(desc) > month(desc) > date(asc)
- Running main loop 2 times with conditional statement
- Array as ‘key’ in WP_Query
- Check the Specific Meta Key IF its Meta Value is Empty then… (WP Post Meta Query)
- Determining Author post count
- How I can change the condition or compare operator for WP_Query in pre_get_posts
- Apply filters to main query instead of creating new one?
- WP_Query returns different results from get_posts() [closed]
- How to pass query string vars between admin pages?
- Query posts by Post title
- Why having more than 10 clauses in WP_Query results in some outputs being dropped?
- mysql query order by
- Why do I have to use pre_get_posts with custom WP_Query to reset posts_per_page?
- Custom Taxonomy Breaks Pages
- Using rewind_posts for displaying multiple categories
- Query to get last posts from authors of blog
- Custom Homepage Pagination using WP_Query
- WP_QUERY tax_query not working
- How to get latest post excerpt from a specific category?
- Get all content on a “single page” site depending on language
- Get list of all Grandchild Pages
- get latest added term from taxonomy and insert into php variable
- Featured images loop for Orbit Slider
- WP_Query not returning correct result with meta_query parameter
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- Make a products only viewable to a specific user ID in meta_query pre_get_posts
- Get categories within specific term
- Exclude parent categories from recent posts list
- How can I query a radius of coordinates?
- custom excerpt is not being shown
- WP_Query with meta_query won’t orderby
- Adding Category in WP_Query Not Working
- meta_query only check if both value are set
- post_type not working when tag__in is present?
- How to create page that lists tags by initial letter?
- Seach and categories not working when ignoring sticky posts in main loop
- WordPress: Cron locking and Queue
- how to query for meta_value have array
- How to make the default WordPress search return borader results
- WP_Query shows all posts on single post pages
- Display Count of posts
- Optimize WP_Query
- Add a custom variable to query page object
- List ALL posts within last week from current category on category page
- WP_Query on “property” in the options table
- Dynamically name array in WordPress loop – add/get values
- Creating Custom Query
- Help in query for list links
- WP_Query issues with argument posts_per_page
- Search (Custom Form, Custom Search Result)
- Hook to get the query result after listing posts
- Elementor custom query