In addition to the suggestion by @AhmedMahdi to solve your problem, here’s the narrower answer to your question: Nope, key cannot be an array. As you can see in the specs of WP_Meta_Query key must be a string.
Related Posts:
- Display products from specific category in shop page
- Exclude post on loop by multiple meta key value
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Query sticky posts with thumbnails
- WP_Query on custom field and order results
- Any number in meta key (wp query)
- How to provide meta_key array to wp_query?
- Wp_query with 2 meta keys and array of meta values
- Meta query compare for ID’s greater than specific ID
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- WP_Query not returning correct result with meta_query parameter
- show most viewed post
- Meta Query if Values Don’t Exist
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Meta query with string starting like pattern
- how to show posts that are missing a meta_value
- WP_Query: query posts by ids from array?
- How to get order of posts?
- pre_get_posts with get_posts
- Executing Queries in tag.php
- Query Custom Meta Value with Increment
- WP_Query using meta_query with relation OR and orderby meta_value doesn’t work
- Identify which loop you are hooking into; primary or secondary?
- querying with custom meta field with meta_query
- Order by two meta keys
- multiple meta key but get server load is very high
- A WP_Query that will look for posts after 2 weeks ago OR with a certain meta value
- Trying to list out child pages with WP_Query
- Exclude first 5 posts of specific categories in the main loop
- How to bring specific post to front of wordpress loop?
- Use meta_query to display events by date in custom field
- Why execute the_post()?
- How to show recent and upcoming birthdays using meta_query
- Posts loop with pagination on a single post page
- WP_Query Order by Specific Post ID First
- How to change posts order on Category and Tag archives?
- Using WP_Query and WP_Meta_Query Outside of WordPress
- Using one WP_Query object within the loop of another WP_Query object
- If two first numbers exist in wp_meta_query value
- how to merge a WPQuery array with a PHP array and use the Loop to Output the result
- How to display 7 most recent days of posts?
- Tax query clause inside a meta query clause?
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Where is the WP_Query instance instantiated (when working with themes)?
- Optional Meta Query
- How do I make a meta_query OR relation work? [closed]
- Meta_query on same meta key, with diffrenct values
- Can we return all category (not post) with Custom Query Filter? [closed]
- Show post number in widget loop
- Extend product search with meta in WooCommerce
- how to make members list directory through wordpress post custom meta key.
- posts_per_page not working for first page of pagination
- Loop Performance > JSON files vs. WP_Query vs. REST API
- Search form not working with custom query?
- WordPress ignoring LIMIT / posts_per_page despite being in wp_query
- Conflict with get_posts and the_content
- WP_Query with meta_query dosen’t return results
- How to list posts with disabled/closed comments, with pagination?
- How to make a second query offset -2 from current post
- different for loop if screen resolution < 1000px
- Advanced WP_Query with meta_query, orderby?
- sort and display posts by custom field (wp-query and the loop))
- Issues with search after added meta_query
- Display posts with specific value first in query
- WP_Query: apply an SQL function to meta fileld value
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- How to create dynamic value in WP_Query meta_query
- query post by author gender
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- How do I add an item to the WP admin menu?
- Multiple meta query from array
- WP_Query with 4 post meta field arguments gives 500 internal server error
- WordPress Queries Not Working?
- Filter subpages in while loop from WP Query object
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- Custom meta_query order for Elementor based on post meta key [closed]
- ElasticPress is (aparently) messing with my search filters
- Multiple meta_query not returning rows
- Related posts queries
- Check for not NULL not working in meta query
- Get unique post by meta value using wp_query
- Query against multiple locations within single custom post type post
- Order by Date Custom Field
- WP Query. Ordering posts by another post types meta
- update_post_meta() not updating
- Get posts meta_query by repater field
- how to show more than 1 post into three columns query
- active link for most recent post on vertical tabs
- meta_query not working with the_content()
- custom query – offset to pagination
- How ‘secure’ are loops?
- How to do a loop inside a loop?
- Main loop querying current template’s info only in custom category archive pages, not my posts
- How can I display sticky posts at first in wp_query?
- How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?
- Unexpected number of loops in while
- Passing a variable containing a comma separated list of values in a meta-query
- How to display only posts from the last day with posts published?