Don’t serialize the search value, just use 'value' => '2011-09-16' 'compare' => 'LIKE'
.
Otherwise you’re essentially looking for;
a:1:{i:0;s:10:"2011-09-16"}
Which of course doesn’t actually match anywhere in;
a:2:{i:0;s:10:"2011-09-16";i:1;s:10:"2011-09-17";}
Related Posts:
- WP Meta Query for some meta (array) values
- Trouble with serialized metadata
- How to get several fields from wp_query?
- order by numeric value for meta value
- Reduce or prevent calling of update_meta_cache
- What is the most efficient way of querying posts based on visits and date for current day?
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- WP_Query displaying ALL posts
- How can I save an array from a random post sequence for later use?
- What is an efficient way to query based on post_meta?
- How to count post meta key values for all posts in database
- How should I use posts_where to change meta_value from a string to integer?
- How can I create a WP_Query that returns posts where one meta_value
- meta_query with array as value
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- Best approach to create Hot and Trending sections
- Order posts by meta value and Date
- How add a custom posttype name using ACF field to a query post array
- How to make orderby ‘meta_value_num’ OPTIONAL?
- Query Posts depends on custom field inside repeater field using acf
- How can I get an array of all IDs from the current queried object?
- WP Query for variable taxonomies
- Get meta info related to current post
- Select from wp_post and multiple meta_value from wp_postmeta
- Pull post meta with post_query?
- Minimize database queries to user tables?
- WP_query posts closest to todays date
- exclude posts with a specific custom field and value
- (Solved) WP_Query ($ args) -> How to sort letters and numbers within the same array
- How to make Meta Query case sensitive?
- Performance when getting post meta for post retrieved by meta value
- Get attachment by meta_key value
- Using hook to use DISTINCT in a wp_query
- Where to put meta Keys
- How to list custom fields as headers and list all pages sharing that custom field under it?
- How do I query for posts by partial meta key?
- Large AND OR query timing out
- get_post_meta slowing down my page load (in a plugin)
- New WP_Query loop in admin causes problems
- How to increase load time of an archive/search page (WP_Query)
- Query all posts if multiple meta key don’t exist
- get_post_meta in WP_Query
- Hide posts with meta key in WP_Query
- Removing duplicate values between two wordpress queries
- Include current post into loop
- WordPress query posts with multiple post_meta data
- Combine results of multiple WP_Query to resemble single WP_Query
- How do I turn these values from MYSQL into an array
- Does meta_value (array) work with ‘orderby’?
- How do I check if an article is popular this week?
- How do I add a relation parameter to my filter query?
- Nested array issue in meta_query
- Order a WP_Query by meta value where the value is an array
- WP_Query with page_ids in arguments without a result
- Display post meta conditionally based on it’s value
- Query using string from custom field as array value
- Sort by custom field that is an array?
- Category based on post id
- How to get specific string in explode array?
- WP_Query meta compare must include ALL array values
- meta_query returning excluded result
- wp query to use both author id and meta_query
- Counting instances of words in the results of a post query
- sanitize_post() is not sanitizing Post Object
- Sort by price wpdb
- WP Query by 4 different taxonomies
- show most viewed post
- Display posts from multiple value in meta separated by comma
- Custom filter from post meta
- Why can my filter query SOME metadata but not other metadata?
- update_post_meta performance in a loop woocommerce
- update_post_meta performance in a loop woocommerce
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- I need query_posts() to order results first by a meta value and then by post ID
- Repeat array inside array through while loop
- Sorting Posts by Taxonomy thats not within the query’s $args
- Related Post by Tags Code
- I can’t get post based on its postmeta value and key
- Saving custom fields for WP_Query to retrieve
- date_query problem
- How to show all the associated posts with specific date of data metabox?
- WP_Query Posts by Metadata from Option Tree
- wp_query – Modify $query to include duplicate content
- Iterate through ID’s in loop
- How to sort a WP_Query array by post_name after an array_merge();
- Issue with WP_Query (need a array of selected ID’s)
- WP Query to order posts by multiple meta fields
- Return a single custom post from multiple meta queries
- Custom Search Query – include only custom fields and title
- WP Query posts__in not working with array
- How to count post meta key values for all posts in database
- Sort Posts with custom meta key by default which is currently set as optional
- query by meta value then date and not empty meta value
- Dynamically create array from page title
- WordPress Query Returning Every Post
- wordpress sorting using array merge by price in ascending order but price with 0 must be show last
- Query posts by meta value and sort by another meta key
- I want to place a post before all others from an ACF boleen field
- wp_query, calculate with two dates when ‘key’ is text format
- Extend search query to search meta keys values based on search string