Are you using a checkbox or similar for the ‘acf_platform’ field using ACF for more than one selection?
Advanced Custom Fields stores these as a serialised array, so a meta_query with ‘compare’ => ‘=’ may not work.
The ACF documentation suggests using ‘compare’ => ‘LIKE’
$args = array(
'meta_query' => array(
array(
'key' => 'field_name', // name of custom field
'value' => '"red"', // matches exaclty "red", not just red. This prevents a match for "acquired"
'compare' => 'LIKE'
)
)
);
http://www.advancedcustomfields.com/resources/checkbox/
EDIT: Actually, I realised that if this was the case your query should be returning no results. You mentioned it returned both posts, so this may not be the case.
Related Posts:
- Query Custom Post Type Taxonomy term with multiple parameters
- Sort custom posts by date and then by taxonomy
- Exclude a category from WP_Query
- Select All in Parent Category, Group by Child Category?
- get_query_var() not working in pre_get_posts
- query multiple taxonomies
- Filtering a WP_Query meta_query by numeric values isn’t working
- Custom Taxonomy with Custom Post Type Finds No Posts
- Custom query – alternate posts by category
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Sort the main query in subcategories/terms?
- Query by 2 values of a repeater ACF field
- Custom Taxonomy List links being re-written
- Want to filter only parent post in admin area
- Custom Taxonomy and tax_query Issue?
- Display posts if a custom field value is equal to another custom field value
- Custom post query by taxonomy
- Querying CPT with Two Taxonomies
- Get Custom Field Values by Another Custom Field in WordPress
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- Show Post Count of a Category
- Group custom posts by custom taxonomy names
- Custom Post Types not showing, custom WP_Query
- How can i skip same post from taxonomy term?
- Filter by custom taxonomy slug on a custom post type
- Create 3 Level Relations with ACF and WordPress
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Retrieve value of a category’s custom field
- wp_query check if integer exists in custom field’s array
- Wrong request query on cpt and tax
- Pagination for Custom Taxonomy Page [duplicate]
- Search / Filter posts on Title/Content OR Tags
- Custom-Posttype & Custom Taxonomy WP_Query
- Custom loop with multiple taxonomy queries
- Custom taxonomy rewrite give pagination 404
- WP_Query order by custom field, then randomly order some of results
- Stuck in Order by more then one
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- What’s the WP way to load remaining custom posts?
- How to have this permalink structure: post_type/postname/custom_inner_page
- How to group posts and get a mixed posts and groups view?
- Advanced search form with filters for custom taxonomies
- Query based on custom fields start and end date
- Retrieve custom post types by custom taxonomies with WP_Query
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()
- Why is my WP Query not returning first result’s post meta?
- Using page slug in wp_query
- Custom taxonomy wp_query woes.
- Creating two loops based on different logic
- Different options per post type in WP_Query
- How to show all taxonomies within custom post type loop
- How to define the template for custom posts?
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- How to query Posts from a custom post type which contains a custom taxonomy?
- Query Posts that have Custom Taxonomy
- List all Custom Post Type posts excluding certain Taxnomy term
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- Foreach loop returning more than one item when querying taxonomy
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Sorting the Loop by Taxonomy Value
- custom taxonomy pagination 404 error
- Ordering by meta value not working
- Create if else for post types in WP_Query ‘post__in’ values
- Using ACF values in nested WP queries for CPT with date values in the past
- custom post type and a “sticky” position taxonomy
- Display post count for a specific month
- Display Custom Field or Custom Taxonomy in front page /post/product
- Some posts not displaying by taxonomy term
- WP_Query to display number of custom post type filtered (order by) taxonomy
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How to display custom post type pagination buttons when processing AJAX request
- Live search by custom tag
- Query a custom taxonomy in a function to create an csv file
- Display custom tax in “while” loop
- Ajax load more inside custom post type taxonomy
- Create a custom wp_query from a specific custom post type with specific taxonomy
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Display all Custom taxonomy terms and their relevant custom posts
- CPT Efficient way to display posts from different categories with custom query
- Query Pulling the same post twice
- Get posts associated with custom taxonomy alternate way
- Loop with Custom Post Type and Taxonomies
- tax_query showing no results
- Post data in separate divs with incrementing class using WP_Query
- Values inside a custom field to determine which category posts to display
- How to display elements of different post types?
- WP Query WordPress Post Type with the same Taxonomy name
- How to list groupings and keep pagination
- How to retrieve taxonomy terms of the current custom post?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- display custom post type from register taxonomy
- Attaching multiple custom taxonomies to one CPT?
- WP Query Conditionally query meta and taxonomy
- Complex Custom Loop with Includes