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]
- meta_query with meta values as serialize arrays
- Use REGEXP in WP_Query meta_query key
- Function in array as arguments for WP_Query
- WP_Query not working as expected for attachments and custom meta_query
- Compare meta_query decimals not working right
- Retrieve products with specific attribute and in category – woocommerce
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Order By Multiple Meta Fields
- Advanced WP Query hogs the SQL server
- How to get user_id from wordpress database inside ajax function?
- How to combine meta_query and post__in in WP_Query
- Get posts for which a custom field is not present, with get_posts
- Output an array of terms for a ‘tax_query’ => array()
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Take all produts by category
- meta_query not working as expected
- Query all posts if multiple meta key don’t exist
- wp_query to print posts if have X custom field value
- WP Query ordering on a meta field for posts with a date in the future not ordering by datetime
- Selecting posts with a given meta value for a meta key
- WP_Query: getting posts where custom field exists
- How to order posts on each different category?
- get_page meta query not working, maybe a bug?
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Sort custom post by custom field if none order by latest release
- Order (by ASC) posts with meta_key so posts without values are last
- Search filter between promo and exact price
- WordPress Meta Query Null Values Order
- WooCommerce WP_Query using tax_query returns no results (0 = 1)
- show most viewed post
- Pre get posts sort by meta key returns no results if meta key does not exist
- meta_query with relation = AND not working as expected when combining EQUALS with NOT EQUALS
- WP Query for Multiple Post Types
- How do i query woocommerce booking post type on init action?
- Orderby query does not work for custom fields even with meta query
- make query more simplest and in one query
- Query by Category and Custom Field – Shortcode
- Querying posts with meta key and meta value not returning anything
- Mathematical operations on custom field values? (updated)
- WP_Query a custom field value bringing back 0 results
- Query posts filter not working
- WordPress Query Default Order if Meta Values Same?
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- Wp query by 2 meta field – check if they exists / have value
- Show linked products using wp query and woocommerce
- WP query with multiple custom meta not respecting orderby
- Passing a variable containing a comma separated list of values in a meta-query