It looks like you want to list products with post_type=product etc.. AND have the same ean code. Therefore, in your place i would try with the line
'relation' => 'OR'
changed to
'relation' => 'AND'
Regards,
Related Posts:
- Extend product search with meta in WooCommerce
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- Query WooCommerce orders where meta data does not exist
- Getting attachments by meta value
- querying with custom meta field with meta_query
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- WooCommerce: filter by parent product’s taxonomy and product variation’s meta data
- WordPress altering my custom query, How to fix it?
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- Order by meta_key in custom post type doesn’t affect the query
- WP Query – Get WooCommerce Products with variation that is in stock
- meta_key and meta_value not working together
- Order Posts by meta value AND published date
- Extending woocommerce admin product search
- How to make Meta Query case sensitive?
- Fetch Record based on meta key dates
- Meta_query with multiple keys and multiple values
- meta_query BETWEEN, but the range is stored in the custom field
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- meta_value_num not ordering all items
- meta_compare not comparing whole integer
- Display posts with specific value first in query
- Get every post with value in meta key
- Multiple meta_key ordering with pre_get_posts
- add_query_arg to compare and display events from a certain date
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- meta_query weird behaviour, static int will work, but not user data
- Query multiple post types, but different order for each
- Order by the first array within a meta_query
- Woocommerce Shortcode which displays a table with product data
- Query ACF relationship field – Comparator IN – Value array
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- How do i create a custom post query when the meta value is an array?
- ElasticPress is (aparently) messing with my search filters
- WP Query – grouping posts by same meta key, adding together values from another key
- Woocommerce Get Orders By Meta Value
- meta_query is overriding default search
- Trouble with serialized metadata
- Comparing Meta Field date in WPQuery using Meta_Query?
- Getting posts by custom field value
- Query against multiple locations within single custom post type post
- WP_Query, ACF field and array
- Order by Date Custom Field
- Query by meta value (add a dropdown of all values)
- Order Posts By Custom Field That is an array of objects
- Custom WP_query and integrating into theme file
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Compare meta key separation
- query post based on comparison
- Get posts by meta value except one post [closed]
- Order by multiple custom fields within woocommerce hook for catalog ordering (woocommerce_get_catalog_ordering_args)
- How can I modify standard search query to include also ACF custom fields values?
- Meta key in wp_query bug?
- make query more simplest and in one query
- Query by Category and Custom Field – Shortcode
- How to show all the associated posts with specific date of data metabox?
- WP_Query – show posts where meta value and user_email match
- Using the same WP_Query for shop and widgets in WooCommerce shop
- Woocommerce orderby rand with tax_query not random
- Wrap group of wp query posts to parent div by date/year
- WP Meta Query at depth 2
- Query events post type after current date and timezone
- Best way to Order Post in Home without a plugin
- WP_Query returns empty if meta_query has more than 7 values
- Is it possible to search for a string in posts OR postmeta?
- Extending WP Query: Custom geolocation meta values work, but tax_query breaks
- meta_query not working with the_content()
- Querying posts with meta key and meta value not returning anything
- WP_Query using meta_query with LIKE doesn’t return what it should
- Sorting posts by meta values: 2 different orders
- Use not custom fields in get_posts() meta_query?
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- Filter posts/pages by user_role array
- Order Custom Field by Price
- WP_Query with MetaQuery issue
- WP_Query Posts by Metadata from Option Tree
- Mathematical operations on custom field values? (updated)
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- WP_Query to show post from a category OR custom field – Not 100% answered
- WP_Query a custom field value bringing back 0 results
- WordPress meta_query not working
- Sorting Posts with meta value not working
- Using orderby with 2 meta keys
- Is there any difference between below WP_Query code snippets?
- Get closest event where meta_key field is an array
- Order by three custom fields (Y-m-d), then separate into yearly sections
- Custom search (wp query by custom fields)
- WP_Query with meta_value_num and meta_query not paged correctly
- Post Query not working after updating to 4.1
- Loop through multiple custom fields with increasing number
- How do I display posts with specific value in a custom field into my loop?
- Orderby Meta Value and Query from Meta Query
- Return a single custom post from multiple meta queries
- Selecting posts older than the current Unix epoch timestamp
- new WP_query using custom fields
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Custom Search Query – include only custom fields and title