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() show posts that end later than today
- Search multiple custom fields by using meta_query
- Meta Query with AND & OR?
- Sorting a query by custom field date
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- order by meta_value serialized array
- How to sort CPT by custom meta value (date), and return posts month by month
- Querying Posts by Taxonomy From Alternate Network Site
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Filter posts with meta_query NOT IN where value has multiple values
- Is it possible to create a shortcode that will query a post based on taxonomies?
- wp_query to find posts by year and month
- Querying Term Posts in Loop
- Get all Posts If has same custom field values in Posts
- meta_query compare >= not working but
- Including Custom Meta with posts_where query
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- Meta query for custom post type ignored in main query
- Querying Two Custom Post Types with OR Not Working
- How can I get the number of custom post type posts that have a specific attachment image set?
- Orderby CPT custom fields not working
- Query custom post type with ACF Date
- Stuck in Order by more then one
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Including metaboxes from custom post types in global search — continued
- Order Custom Post Type by Custom Field Value
- How to Output which matched meta_keys were found from custom_type_posts?
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- WP Query ‘posts_per_page’
- How to get specific post meta by title or id
- WP_Query of custom post type sorted by meta_key has unexpected results
- Custom Post type loop with ACF not displaying properly
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- Create query for both custom post type and category
- Filtering custom posts by custom fields (ACF) [closed]
- Sorting by meta_key different to search criteria?
- Cache issue with WP_Query and custom field filtering
- Custom Form / Search with Custom Post Type Data
- Alike Shortcode using in Custom Shortcode
- WP Query: If field X is empty, show posts based on field Y
- Sort custom post column by generated value?
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- meta query condition don’t work
- Use WP_query to match post types based on custom field values
- Filter posts by their related field’s custom field
- WP_Query for custom taxonomies showing posts from non-specified terms?
- 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
- 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
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Get posts of an specific term of a custom taxonomy
- Is it possible to add query parameters on the archive page?
- 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
- Storing/querying custom date data
- Query Posts From Multiple Post Types
- 404 on Pages for Custom Post Type & Query_Posts
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How to show all posts of specific custom post type with their custom fields values?
- querying to custom field over ACF REST API
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- Display ACF object field data using Elementor Custom Query
- WordPress custom field sorting, weird behavior: the latest post is at the end
- Sort CPT by taxonomy AND THEN by custom field
- Query order by a numeric ACF field