Probably the date format should be different – like:
$date_debut = date('Y-m-d',$date_debut);
$date_fin = date('Y-m-d',$date_fin);
I haven’t tested this but the doc says:
The ‘type’ DATE works with the ‘compare’ value BETWEEN only if the
date is stored at the format YYYY-MM-DD and tested with this format.
Related Posts:
- ACF Relationship Field Search Filtering [closed]
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- meta_query with array as value
- If two first numbers exist in wp_meta_query value
- WP_Query meta_query >= date
- ACF Date Based wp_query
- Custom query based on meta key – Reduce three states to two in results?
- What is the random string I am seeing when I use get_query_var?
- Any number in meta key (wp query)
- WP_Query with meta_query dosen’t return results
- Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- WP_Query, ACF field and array
- Pre get posts sort by meta key returns no results if meta key does not exist
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- Get posts meta_query by repater field
- How can I modify standard search query to include also ACF custom fields values?
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Get posts using multiple values from ACF checkbox as meta query wordpress
- How do I subquery with custom meta fields?
- Use value from meta key array for use in WP_Query
- How to use meta_query to retrieve posts from multiple custom post type
- WP_Query filtering in ACF field containing dates
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- how to show posts that are missing a meta_value
- Display products from specific category in shop page
- WP_Query using meta_query with relation OR and orderby meta_value doesn’t work
- 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
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- Query by meta_key and order by meta_value_num return orderby date
- Wp_query order by multiple custom fields?
- Order by meta_key in custom post type doesn’t affect the query
- Use meta_query to display events by date in custom field
- Minimising number of queries on a page when using Advanced Custom Fields
- How to show recent and upcoming birthdays using meta_query
- Multiple meta queries but arrange by specific meta value order
- Order Posts by meta value AND published date
- ACF Relationship + WP Template Parts
- Using WP_Query and WP_Meta_Query Outside of WordPress
- ACF – Get lowest & highest value from field
- What format does the meta_query TIME type require?
- WP_Query on custom field and order results
- pre_get_posts order by not working
- How to query a custom post type with a taxonomy filter but display post type archive page?
- WP_Query filter and order by meta ordering by wrong joined table
- WP_Query last five posts, simply ordered by meta_value
- How To Fix WP Query Returns Results But Shouldn’t?
- Tax query clause inside a meta query clause?
- Include custom field in Ajax search WordPress
- Optional Meta Query
- How do I make a meta_query OR relation work? [closed]
- Elementor custom Query with ACF fields to show matching woocommerce products custom fields
- meta_query in WP_Query value is not accepting array
- Meta_query on same meta key, with diffrenct values
- Can we return all category (not post) with Custom Query Filter? [closed]
- Extend product search with meta in WooCommerce
- Is there a way to work with a specific the_field from an already queried post? [closed]
- how to make members list directory through wordpress post custom meta key.
- Changing sort order for presentation by Jetpack infinite scroll
- get posts by meta_key from inside key of post meta
- Help optimizing slow WP_Query with meta_query
- Meta Queries – should nesting work after WP 4.1?
- Filter and Order by Multiple Custom Meta Values
- Meta Query relation “AND” then set array accordingly
- 2 weeks ago from meta query meta value
- How to provide meta_key array to wp_query?
- How to set up hierarchical relationships without using plugins / meta query
- Meta query compare for ID’s greater than specific ID
- Is it possible to add relation between meta_query and tax_query?
- add_query_arg to compare and display events from a certain date
- WordPress dynamic AJAX query
- WP_Query not returning correct result with meta_query parameter
- Query on meta values and post title
- How do i create a custom post query when the meta value is an array?
- Custom Meta Query doesn’t work the same on two site
- WP Query – grouping posts by same meta key, adding together values from another key
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- Query for current post
- Custom query to retrieve oldest post and retrieve others with date interval
- Why does my output of get_the_ID() change after a wp_query?
- Very slow query generated getting meta data from posts
- How to filter on placeholder image
- Limit default Search query to post_title
- What is the best way to reset a search on a meta_key / meta_value?
- Slow query when selecting with large meta query or post__in
- WP Meta Query at depth 2
- Is there any difference between below WP_Query code snippets?
- Geo location query inside wp_query?
- Sorting: custom query with orderby meta_value_num THEN by title
- meta_query compare not doing what I want it to do
- Can’t figure out query logic
- WP_Query orderby not working on custom post_type
- How do I have multiple metaqueries inside one wordpress query
- WP query with multiple custom meta not respecting orderby
- Display only posts with thumbnails
- Passing a variable containing a comma separated list of values in a meta-query