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?
- How to only display posts whose meta_value field is not empty?
- Can wp_query return posts meta in a single request?
- order by numeric value for meta value
- How do I query for posts by partial meta key?
- Use REGEXP in WP_Query meta_query key
- WordPress retrieving meta data for all custom post types in list view
- Order by optional meta key?
- meta_query: using BETWEEN with floats and/or casting to DECIMAL
- Reduce or prevent calling of update_meta_cache
- Is there a way to extend WP_query so Custom Post Types can have properties?
- 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
- Getting attachments by meta value
- WP_Query displaying ALL posts
- What kind of object type is WP_Query?
- How can I save an array from a random post sequence for later use?
- meta_query where value is equal to given value
- Query Custom Meta Value with Increment
- WP-CLI How to generate a list of posts with corresponding meta values
- Getting an array out of WPQuery
- What is an efficient way to query based on post_meta?
- assign 2 $args to one wp_query
- WP_Query not working as expected for attachments and custom meta_query
- Use Transient API to cache queries for all posts in all categories?
- How to count post meta key values for all posts in database
- Group posts by meta_key
- 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
- WordPress altering my custom query, How to fix it?
- WP Query post meta value
- meta_query with array as value
- Would this post meta be better added to the post table rather than post_meta table
- Custom URl parameter
- query posts in functions.php and update a field
- Compile meta values from custom loop into array and then calculate sum total
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- Placing a div or img in between a post array using WP Query [closed]
- how to fire join query with post_meta
- Show one post per author and limit query to 8 posts
- Best approach to create Hot and Trending sections
- WP_Query, custom sort and custom filter
- Order posts by meta value and Date
- Efficient way to update multiple post meta
- 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?
- How can I pick a single post from the latest 3?
- Query post with meta_query where date is not in future
- WP Query for variable taxonomies
- Minimising Database Queries when using Advanced Custom Fields
- Get meta info related to current post
- Select from wp_post and multiple meta_value from wp_postmeta
- Pull post meta with post_query?
- Group WP_Query by meta_key date
- 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
- Inserting serialized value into wp_postmeta using update_post_meta
- How to make Meta Query case sensitive?
- Performance when getting post meta for post retrieved by meta value
- Adding an array from a query string to a WP meta_query
- Get attachment by meta_key value
- Display custom field meta outside loop, site wide
- Using hook to use DISTINCT in a wp_query
- Fetch Record based on meta key dates
- Weird orderby => post__in issue
- Where to put meta Keys
- How to list custom fields as headers and list all pages sharing that custom field under it?
- how to make members list directory through wordpress post custom meta key.
- 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
- echo a specific meta_key queried through a custom post
- 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
- Get posts by list of post IDs ordered by those IDs?
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- Hide posts with meta key in WP_Query
- Removing duplicate values between two wordpress queries
- Include current post into loop
- Filter posts by comparing custom meta value against postdate
- 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
- WP_Query – Accessing MetaValue from Query Result
- Does meta_value (array) work with ‘orderby’?
- How do I check if an article is popular this week?
- Combine 2 arrays in a query parameter
- Woocommerce: order posts by meta key
- How can I comment comma-separated array values?
- How do I add a relation parameter to my filter query?
- Order WP_Query results by meta key value in custom query
- construct complex queries with WP User Query