This is the magic: with timestamps, insteed of 'type' => 'DATE'
must be used 'type' => 'NUMERIC'
.
Related Posts:
- Display two post types ordered by two custom fields
- WP_Query orderby custom field then post_date in one query
- Filtering a WP_Query meta_query by numeric values isn’t working
- Having trouble with custom date field for CPT query (WordPress)
- Conditional to modify query results
- Filtering by Post Meta Custom Fields – Performance
- WP_Query: include custom post type only with specific meta value
- Returning a list of custom post types excluding those without a specific meta_value
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- First custom field value (out of several) displayed twice after query
- Possible to filter custom post type with multiple meta data?
- Query based on custom fields start and end date
- Getting a custom post’s custom field based on another custom post’s custom field select
- Custom Query: If One Post Object Field Value Is The Same As Another
- WP Query from two Custom Post type fields as statement
- Using OR relation in meta_query to check for a value before sorting by another
- Meta query and compare “!=” not working as expected
- meta query multiple values for the same key
- Sort custom post archives by a meta value from a different custom post type?
- Custom post types – meta_query: search lesson which starts sooner
- post type => ‘any’ not applied my custom queries
- Meta_Query refuses to return results
- Query events post type after current date and timezone
- Conditional posts in WP_query for search
- Selecting posts older than the current Unix epoch timestamp
- Querying meta values within an array
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Filter Custom post type by another Custom post type
- Get Posts ordered by a date custom meta field
- WP_Query not using relation key as expected and not producing any results
- Create query for both custom post type and category
- Filtering custom posts by custom fields (ACF) [closed]
- Query Posts, order by meta value
- WP_Meta_Query object with conditionals
- Sorting by meta_key different to search criteria?
- Using WP meta query to show custom post types by a start and finish date
- Two queries – one with checkbox ticked, one without – comparing meta_query
- Cache issue with WP_Query and custom field filtering
- Query custom posts from custom taxonomy
- How do I list a custom field and custom taxonomies for each result in a loop?
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- WP query_posts group by meta field related
- Query multiple post types, but different order for each
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- order the meta query results by 2 custom fields
- Custom Form / Search with Custom Post Type Data
- Change search query in wordpress custom post type
- Create if else for post types in WP_Query ‘post__in’ values
- Alike Shortcode using in Custom Shortcode
- WP Query: If field X is empty, show posts based on field Y
- Query custom post type that has a serialized relational advanced custom field value
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WP_Query get always custom post_type for first
- Sort custom post column by generated value?
- build child and anchestor three from post parent
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- meta query condition don’t work
- How can I query and sort custom-post type using WP_Query
- Custom query result empty on page 2
- Orderby if between two meta fields
- Use WP_query to match post types based on custom field values
- How select query is generated in a Custom Post Type?
- Filter posts by their related field’s custom field
- Show posts from WP Custom Post Type selected from a field in a metabox
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Query custom post type and custom field by URL parameters
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How do I query with multiple custom fields orderby in same column?
- Query against multiple locations within single custom post type post
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Post Filtered by Custom Field Value
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- sorting in wp query based on custom field value
- Query by meta value (add a dropdown of all values)
- How to get the posts that my following users are liked?
- Sort loop by custom field from different post type
- Linking posts together with Advanced Custom Fields “both ways”
- Meta_query by date for Events archive
- Not able to get my custom search result using meta_query and tax_query together?
- How do I display specific custom posts, and how do I edit a post’s singular page?
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Error in WP Query. If variable is empty it is displaying previous post value
- Querying, storing, and using data from 2 separate custom post types
- Get posts of an specific term of a custom taxonomy
- Show first posts with custom field not empty and order all by title
- Query Pulling the same post twice
- Is it possible to add query parameters on the archive page?
- meta query always fails even if data is correct
- Calling specific page with wp query
- How to stop wp_query searching pages as well as the specified CPT
- Unable to get the upcoming events for custom post
- WP_Query and two custom fields returns no posts
- Custom Query With Multiple Meta Key Value
- WP_Query get posts where post_name is empty
- Storing/querying custom date data