Get the two post types along with their acf meta and use PHP Array Functions ( like Array Interset) to get the common/union or intersection. Additionally this will help you in this regards.
Related Posts:
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Having trouble with custom date field for CPT query (WordPress)
- Conditional to modify query results
- First custom field value (out of several) displayed twice after query
- WP Query from two Custom Post type fields as statement
- How to use a custom post type as front page?
- Search multiple custom fields by using meta_query
- WP_Query orderby custom field then post_date in one query
- Query custom post type by custom field
- Sorting a query by custom field date
- How can I generate a RSS feed based on a custom WP_Query?
- Search Custom Post Type with all meta attached?
- How to sort CPT by custom meta value (date), and return posts month by month
- Querying Posts by Taxonomy From Alternate Network Site
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Query by 2 values of a repeater ACF field
- Get post info inside modal window?
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Display posts if a custom field value is equal to another custom field value
- Sort by two dates. Default entry date and custom field if present
- Is it possible to create a shortcode that will query a post based on taxonomies?
- wp_query to find posts by year and month
- Querying Term Posts in Loop
- Use get_post_types to query only custom posts types
- Get all Posts If has same custom field values in Posts
- Including Custom Meta with posts_where query
- WP_Query: include custom post type only with specific meta value
- WP_Query orderby modified to include custom meta changes
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- Search / Filter posts on Title/Content OR Tags
- Querying Two Custom Post Types with OR Not Working
- How can I get the number of custom post type posts that have a specific attachment image set?
- Problem querying Custom post type by custom fields
- Orderby CPT custom fields not working
- Query custom post type with ACF Date
- Including metaboxes from custom post types in global search — continued
- Query Multiple Custom Posts by Custom Fields
- Order Custom Post Type by Custom Field Value
- Prioritize posts in query by meta keys?
- WP_Query orderby and tax_query
- Different Ways to Query Custom Post Types?
- Possible to filter custom post type with multiple meta data?
- Query based on custom fields start and end date
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- WP Query ‘posts_per_page’
- Display post from a date range from custom field
- How to get specific post meta by title or id
- WP_Query orderby not work with meta_key
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Returning a custom content types with meta values
- Custom Query: If One Post Object Field Value Is The Same As Another
- Custom Post type loop with ACF not displaying properly
- Create query for both custom post type and category
- Filtering custom posts by custom fields (ACF) [closed]
- Cache issue with WP_Query and custom field filtering
- How do I list a custom field and custom taxonomies for each result in a loop?
- Custom Form / Search with Custom Post Type Data
- Change search query in wordpress custom post type
- Create if else for post types in WP_Query ‘post__in’ values
- Alike Shortcode using in Custom Shortcode
- WP Query: If field X is empty, show posts based on field Y
- Query custom post type that has a serialized relational advanced custom field value
- Sort custom post column by generated value?
- How can I query and sort custom-post type using WP_Query
- Meta query and compare “!=” not working as expected
- How select query is generated in a Custom Post Type?
- Filter posts by their related field’s custom field
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How do I query with multiple custom fields orderby in same column?
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Post Filtered by Custom Field Value
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- sorting in wp query based on custom field value
- Meta_Query refuses to return results
- Linking posts together with Advanced Custom Fields “both ways”
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Error in WP Query. If variable is empty it is displaying previous post value
- Query events post type after current date and timezone
- Get posts of an specific term of a custom taxonomy
- Show first posts with custom field not empty and order all by title
- Conditional posts in WP_query for search
- Is it possible to add query parameters on the archive page?
- How to stop wp_query searching pages as well as the specified CPT
- WP_Query and two custom fields returns no posts
- Storing/querying custom date data
- Query Posts From Multiple Post Types
- 404 on Pages for Custom Post Type & Query_Posts
- Show Posts in Vertical Tabs with Scrollbar
- How to show all posts of specific custom post type with their custom fields values?
- querying to custom field over ACF REST API
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- Load posts via AJAX without draft status
- Query order by a numeric ACF field