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
- Meta_query compare operator explanation
- meta_query ‘compare’ => ‘IN’ not working
- Sorting: custom query with orderby meta_value_num THEN by title
- Display List Of Posts Containing a Relationship Field Value [ACF]
- Using OR conditions in meta_query for query_posts argument
- WP_Query with checkbox meta_query
- Meta Query with date and time on the same Day before given time
- How to grab metabox value in wp_query meta_query key
- Is “orderby” in WP Meta Query conflicting with Meta Query?
- WordPress meta_query and order by custom field
- How can I create a WP_Query that returns posts where one meta_value
- WP Meta Query for some meta (array) values
- Sort users by meta_value_num
- How to count data records in wordpress which have same meta_value in wp_postmeta table?
- Meta_query with or without value
- Query Posts depends on custom field inside repeater field using acf
- wp_query not searching with apostrophe
- Add condition of user capability in WP_query
- How to make Meta Query case sensitive?
- How do I run through a WordPress loop called from a filter function?
- How to display multiple custom fields with the same meta_key in an ascending order?
- Meta_query with multiple keys and multiple values
- Is it a good idea to improve meta query performance by adding tax query?
- How to Union two different conditions in one WP_Query
- Modify wp-query and sort by post meta key
- Orderby listing issue
- Multisite wp_query & switch_to_blog issue
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- Make meta query treat meta_value as 1 or 0
- Is this meta query problematic?
- WP Query Meta Value – How To Identify Specific, Unique Values?
- Order by meta_key doesn’t work
- Appending to existing WP_Query’s meta_query if exists
- Multiple meta_key ordering with pre_get_posts
- Query by date from custom field
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Nested array issue in meta_query
- Error in meta_query not get result
- How to get current page nearest parent id?
- Using WP meta query to show custom post types by a start and finish date
- meta_query with array as value with multiple arrays
- Why doesn’t my WP Meta Query return any results?
- Sort posts using multiple custom fields and menu_order in single query?
- Optimising WP_Query with ACF Fields
- WP_Query – display posts by custom field and order by another
- Search filter between promo and exact price
- Populate select list with meta values from all posts of a Custom Post Type
- meta_query – check for multiple meta values in key which holds an array of values
- WordPress Meta Query Null Values Order
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- Why can my filter query SOME metadata but not other metadata?
- Getting posts by custom field value
- How to get taxonomy image attached to a Post Type WordPress
- WP_Query on custom key and value
- Get posts having meta value between two numbers
- wordpress multiple meta value query is not working
- Strange results from WP_Query
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- Sorting with meta_query and multiple, optional meta keys
- meta_query with relation = AND not working as expected when combining EQUALS with NOT EQUALS
- Query by meta value (add a dropdown of all values)
- Order Posts By Custom Field That is an array of objects
- ACF: using two loops, the_field returns field content from another loop
- make query more simplest and in one query
- WP_Query returns empty if meta_query has more than 7 values
- Use not custom fields in get_posts() meta_query?
- Compare meta key separation
- WordPress meta_query not working
- Using orderby with 2 meta keys
- Passing conditional arrays to WP_Query() [closed]
- Query posts filter not working
- Creating array to compare custom field values
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- Display all custom meta field values from the database using ACF Repeater
- Get all user with both meta_value
- WordPress extremely slow when using get_posts with multiple meta_query relations
- I want to place a post before all others from an ACF boleen field
- Use meta query only 3 or more results?
- WordPress – Optimize the Meta Query for 3 meta keys at a time