I just found the problem, though I cannot explain why or how things went the way they did – the date to compare events by had the wrong date format: date( 'd-m-Y' )
should have been date( 'Y-m-d' )
.
The comparison worked until the update, so something must’ve changed about the way WordPress stores date input.
Related Posts:
- filter search result with custom post type meta key
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Can’t sort order of wp_query with 2 meta keys
- Using meta_query, how can i filter by a custom field and order by another one?
- Mixing regular and custom post types (with meta_query) on home page
- meta_query for keys that aren’t yet set
- Prevent pre_get_posts filter on specific post type
- Fail to compare dates in meta_query
- Get posts based on meta key/value
- How to create a wp_query that contains both meta_query and tax_query
- WP_Query() show posts that end later than today
- $query->set in pre_get_posts is unintentionally affecting the backend
- WP_Query orderby custom field then post_date in one query
- How to put custom post types on front page
- Filtering a WP_Query meta_query by numeric values isn’t working
- Add Custom Post Type to Current Query
- Ordering posts having multiple post-meta date fields
- How to show more posts on an archive page?
- Include post id[s] into WP_Query()
- Querying custom post type with 2 custom fields (date-range)
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Pre get posts for single post
- How Can I save multiple records in same meta key?
- How to get my Custom Post Type to display in Recent Posts using “pre_get_posts”
- Order Posts by Taxonomy and Meta Value
- Pre_get_posts Gives 404 on Custom Post Type
- Order posts by (hierarchical custom) taxonomy terms and term children
- I can’t set meta_key in my custom post type query
- order by meta_value serialized array
- Using Query Posts With Multiple Post Types And A Taxonomy
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Limiting number of custom posts shown on taxonomy page
- Include custom post type in “all posts”
- Sort custom post types by last name in the backend
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Combine tax_query and meta_query in WP_Query
- Displaying custom post type on category pages but not on blog listings
- query order by date on custom type: wrong order
- Custom post type with tags
- Used with meta_query in query_posts works slowly
- exclude custom post type by meta key in wp_query
- pre get posts changing the query
- How loop through posts based on custom fields
- Display all Posts and only certain Custom Post Types with meta fields
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Using pre_get_posts to Filter Posts
- Custom query variable – get wordpress to redirect to nice permalink url
- Filter posts with meta_query NOT IN where value has multiple values
- Display custom post types with custom date field value (before today) & order by custom date field
- Displaying Metabox value (custom post type taxonomy)
- Query for custom post type objects in a taxonomy and with a meta value
- Display custom post type taxonomy and month
- Meta_query with relation ‘OR’ killing server CPU
- CPT Meta Searching
- Filtering by Post Meta Custom Fields – Performance
- Custom search for custom post meta with pre_get_posts interferes with WP search
- Ignore sticky posts if post is not in meta query
- Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
- Query that joins the postmeta table twice
- Issue with pre_get_posts on custom post type archive pages
- Using pre_get_posts to filter one loop in a multiloop archive
- How to sort custom post type posts in default order by multiple fields?
- Custom post type show on both Home and Date Archive
- meta_query compare >= not working but
- pre_get_posts on custom post type
- advanced search forms with 3 input text and that the main problem 3 input text
- Pull a post based on a meta value in a custom post type
- Change archive page template using pre_get_post
- Setting proper query for multiple custom admin filters
- WP_Query: include custom post type only with specific meta value
- Sorting Custom Post Type by Meta Value but wont display when set to 0
- How to alter WP-JSON main query or best practise for custom endpoints
- Returning a list of custom post types excluding those without a specific meta_value
- How to modify archive query with pre_get_posts to append CPTs?
- 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
- Advanced or not so advanced pre_get_posts query
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- Multiple meta_values in the pre_get_posts filter?
- Get posts between custom dates
- Showing posts from different categories and from custom post type
- Custom post type search using $_SESSION and pre_get_posts
- filter custom post type by meta key in dashboard
- Meta query for custom post type ignored in main query
- How to filter wp_list_categories output with some custom post type meta query?
- How to sort custom columns for custom post type without meta query and pre_get_posts?
- Display a CPT based on a metabox selection
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- How to do WP_Query with two meta fields with orderby clause
- Stuck in Order by more then one
- Meta Query Not Returning Output Despite Having Matching Values
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- WP Meta query for a custom post type based on two values
- Why is this query not working? (Standard posts + custom post type)
- Using meta_query and tax_query at the same time
- search suggest – filter post type
- Custom Post Type Archive Error, Takes Last Post as Title and Doesn’t Work
- Meta Query posts not showing on ending date of custom field
- Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type