should 'type' => 'CHAR'
actually be 'type' => 'DATE'
the Codex might help on the possible parameters you need here
Related Posts:
- Display posts of the last 7 days
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- Author List page: Exclude based on last post date
- get_post_meta causes database queries
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- Order by meta_key with two meta_queries
- Sort Posts by Multiple Meta Values [duplicate]
- ACF Custom Field WP_Query, but need to get all posts, if field doesn’t exist
- Single meta key with multiple meta value in like comparison
- Sorting a query Field by date
- Filter Loop by Custom Field Value
- meta_query check for meta value in key which holds an array of values
- Show single posts date, in a page of posts
- How do I query based on the modified date?
- Custom query looking at multiple custom fields and properly sorting
- Tax query get first product with attribute value in pre_get_posts
- Ordering Posts By Meta Data
- Filter posts by current date ( WP Post Carousel )
- query_posts() with multiple meta data comparisons
- Show previous month’s posts
- Checking if field is set before comparing with meta_query in query_posts?
- posts_per_page no limit
- Nested meta_query with multiple relation keys
- How to return results of a get_posts() in explicitly defined order
- Query Multiple Post types each with own meta query
- Query posts: how to exclude results if post is in multiple categories
- query_posts ->using meta_compare / where meta value is smaller or greater or equals
- Is it better practice to use query_posts, WP_Query, or get_posts to create various custom loops within a Page?
- WP 5.8 “Query Loop” block: where to place custom query?
- Sort X categories by last update and show image
- Meta Query with date and time on the same Day before given time
- Pagination on archive.php page
- order post my meta value m/d/y format with year as included value
- _wp_page_template to dynamically use template
- Schedule Sticky Posts
- Total Count of Posts NOT in Selected Categories?
- WordPress Search Filter Only for Page with Child of Child of Child of Child of Child
- How to display liked posts of current user in wordpress?
- Problem with single-page for my custom post
- How to modify the query to exclude posts by slug?
- How to make the list of post and load on same page with sub-pages [closed]
- How to get 4 Posts after the 5 most recent ones
- How to fetch all posts in a category that were published between two given dates?
- How do I make archives.php for one category only?
- get_meta_data within a loop
- making random query button using $_GET
- Is it possible to query_posts using post__in and then Loop through them in the ordered they were queried?
- How do I change the default sort order of a custom column on the posts page?
- WordPress pagination showing same posts on each page
- Co-authors plus problems with query_post
- Error sending array of inputs
- Authors List page – How to include only those with wp_user_level as Author
- Meta query: How do I return posts within a date period from a given month?
- Show Blogroll of another WordPress site
- Why this code causes infinite loop?
- Each post is showing twice in my custom query…?
- query_posts() – problem with “s” parameter
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How to get posts published on the latest date?
- Page title in post query
- Question about querying posts
- Currently using a query_posts() in my theme – want to use a request filter in stead
- How to list most popular post
- How can I query for all children posts regardless of parent
- INSERT in table row fatal error
- WordPress query reverse order
- Meta_query ‘compare’ => ‘LIKE’ not working?
- How to reverse post navigation at bottom of post
- WP-API: get posts in multiple categories
- Custom post query error
- Why doesn’t my WP Meta Query return any results?
- Getting images from media library and get_the_date() not working
- Multiple instances of query_posts
- If Query Post Returns 1 Post
- How to check a list or feed of all posts under a category and tag?
- Keeping get_posts’ offset and is_paged() synchronized
- odd behaviours from template tags
- How do I add a timezone offset to this query?
- query_posts thumbnail condition
- Show posts from specific roles
- How to add an “or” instead of and “and” (&) in a WordPress query?
- Instead of 4 loops, how can I do it better?
- How to get any type posts include attachments by ids?
- Create a Loop with Posts Ordered by Most Recent Comments
- Specifying image size used in template the_content
- allow user to edit posts made by others users based on the user role
- Orderby query does not work for custom fields even with meta query
- Pagination not working on my archive page for a custom post type
- Order posts by ACF checkbox
- Post per page not working
- why is pre_get_posts not working
- query_posts result differs from wp_query request result
- Query Posts by date range with fixed beginning and end
- orderby not working for query_posts using array of IDs
- Collect posts from last 48 hours
- How to go to tag archives using a form
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Sort posts with multiple meta_keys
- How to get custom post type posts with certain multiple tags names and category id?
- Create “archives by year and week” by category template