Probably should have waited a bit but after posting the question I found a solution based on my points above and repeated here:
https://codex.wordpress.org/Class_Reference/WP_Meta_Query
https://generatewp.com/filtering-data-with-wp_meta_query/
My Solution:
$metaSearchSubQuery = [
'relation' => 'OR'
];
foreach($eventTypeId as $id) {
$metaSearchSubQuery[] = [
'key' => 'EventId',
'value' => serialize($id),
'compare' => 'like'
];
}
$metaSearchQuery[] = $metaSearchSubQuery;
Related Posts:
- Reading Content in an Array as it relates to a meta_query
- How to check a single number value against an array of meta_key values?
- meta_query key value from array
- Multiple Values stored as array in Meta Query
- Using get_terms() with meta_query parameters
- Does meta_query working with value paramater higher then 999?
- WordPress Screwing Up ‘orderby’ => ‘meta_value_num’ in ‘pre_get_posts’
- Grouping posts by a custom meta value
- last_name + first_name orderby with meta_query [solved]
- meta query or with meta value
- Fetch custom post related to a User
- How to Ordering by user meta
- meta_query compare “=“ returns nothing when it seems it should
- Querying terms with calculations based on term meta data, sql vs. get_terms
- Get meta_value from GDRating
- Trouble with calling an imploded variable in an array
- Multiple meta key and value search in the query
- meta_query for user ID in array
- How to output meta_key in wp_postmeta?
- How to do a meta query using REST-API in WordPress 4.7+?
- Get result from meta_query() between two numbers
- Using meta_query on pre_get_posts to exclude a particular meta_key value
- SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
- Is it possible to orderby multiple meta_keys when using meta_value_num?
- Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
- Order by nested named meta queries with ‘exists’ and ‘not exists’
- Arrange Posts By Date In Order Of Closest To The Current Date
- Custom Upcoming Events List for Events Manager Plugin
- How to exlude posts that have certain meta_value?
- User Relationship
- List of posts by day of the week
- WordPress Core – Optimizing meta_query generated SQL?
- Edit post_content on posts with Featured Image
- Use both meta query and tax query
- meta_query, number comparison, not quite working as it should
- Meta query: get posts with value in a multidimensional array
- Why isn’t my `meta_query` array functioning properly?
- Fastest way to do meta query when I don’t need the actual posts, and just need post_id?
- How to orderby multiple meta fields if some fields are empty
- meta_query issue with multiple numerics
- WP User Query Issues
- Meta Query relation “AND” then set array accordingly
- Custom order for Mysql array
- Help on multiple meta_query
- pre_get_posts and set
- How to use orderby with meta_query?
- meta_query check for meta value in key which holds an array of values
- How to order users by a date in the meta_value array
- get_users with array as meta_value
- change order of images attached to post
- how to get post meta where value is an array of key value pairs
- Meta Query Based on Month Range
- Find posts by related taxonomy field
- wordpress meta value compare between two date
- Can I use pre_get_posts to add up values from two different meta_keys?
- query post by author gender
- How can you query posts by advance custom field when the value is a serialized array? [closed]
- WP JSON API meta_query not working
- Sorting posts by ACF field
- Multiple meta query from array
- Ordering custom posts by meta field date
- latitude/longitude meta_query
- meta_query displays all results and none, my query is wrong
- How to properly escape values in meta query
- Delete all posts with a specific custom field using meta_query
- Use meta_query in args for relationship
- Negative meta_query if storing multiple post_meta values with shared meta_key
- get posts based on non-single metadata
- meta_query Array
- Order resultset by configured value and then list all the rest
- Issue with user meta_query
- Best Practice? – Saving multiple Values as Serialized Data / Saving each Value per Row / Dedicated Table
- How to get an archive page meta?
- Search for value(s) in meta field for a multi select
- Query posts by current ACF meta key value on single page as related posts
- How can I create a meta_query with an array of dates?
- WordPress meta query not working
- wordpress meta query with multiple meta condition causing a load on server and slows down the server..!
- Memory Leak in Processing Large JSON file
- meta_query not filering but meta_key works fine
- Create Shortcode shows only posts with custom_field meta
- get posts meta query returning the latest post if no meta key found
- WordPress search between two newmeric values with a custom post type
- like_escape notice when using LIKE in meta query
- WP User Query with meta queries
- How to display checkbox meta array values one by one?
- Plugin Shortcode value in post
- how to query for meta_value have array
- WP_Query with UNIX timestamp in meta query
- Querying by meta key and value
- Sort Posts with custom meta key by default which is currently set as optional
- Meta query “OR” comparison not working as expected with array
- Creating Custom Query
- Get posts by meta value except one post [closed]
- Check for custom field value in different post type than current one and do something
- ACF meta_query field treated as “0” resulting in false negative search when testing ranges
- Is it possible to customize meta query in this way?
- WP Query Args – search by meta_key or title
- How making a new search box in admin post table working on a specific column
- wp_user_query with meta_value_num for leaderboard