Why does this incorrect pre_get_posts meta_query work for sort order?
Related Posts:
- WordPress Screwing Up ‘orderby’ => ‘meta_value_num’ in ‘pre_get_posts’
- Order resultset by configured value and then list all the rest
- Using meta_query on pre_get_posts to exclude a particular meta_key value
- Meta query interfering with orderby relevance
- Order by nested named meta queries with ‘exists’ and ‘not exists’
- Arrange Posts By Date In Order Of Closest To The Current Date
- pre_get_posts order by not working
- WP_Query ordered by meta_value_num doesn’t fetch posts without this meta field
- Custom post type archive with rand and meta_value
- Help ordering Post loop by two meta values
- Order ascending is ignored in meta query?
- pre_get_posts and set
- Orderby doesn’t work like expected on custom query
- last_name + first_name orderby with meta_query [solved]
- Can I use pre_get_posts to add up values from two different meta_keys?
- meta_query Array
- meta_query check multiple date formats
- WordPress meta query not working
- ORDER BY custom field value
- Sorting: custom query with orderby meta_value_num THEN by title
- Query between two meta keys
- Ordering posts having multiple post-meta date fields
- How to check a single number value against an array of meta_key values?
- Meta query with multiple logic (AND / OR)
- Order Posts by Taxonomy and Meta Value
- Is there a way to do multiple ordering on a multiple meta_query?
- How to alter query order direction using $query->set(‘order’, ‘ASC’); inside a pre_get_posts filter?
- Multiple Values stored as array in Meta Query
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Documentation for post meta
- Help With issue on pre_get_posts filter in taxonomy
- Advanced orderby with multiple meta_query
- query order by date on custom type: wrong order
- Very slow query with meta_query on large database
- Comparing arrays with meta_query in pre_get_posts
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- Display custom post types with custom date field value (before today) & order by custom date field
- Sorting posts by multiple values, combined
- meta_query results not the same with and without spaces
- meta_query all posts between to ages
- Nested Queries using meta_query
- Wildcard with LIKE operator in Meta query
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- Query Multiple values for same key
- Comparing a field with several values at once with meta_query
- Meta query with a sub query group possible?
- Query custom field with date
- Searching in title or meta, with a tax query too!
- WP_Query with meta_query no results
- Documentation for post meta
- Alter main archive, to show posts with meta as last
- Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?
- Sanitize Custom Field Value in Meta Query
- Pre Get Posts / Multiple Meta Keys / Orderby Single Key
- How to query wp_postmeta table for any specific meta_value?
- User meta query results in PHP notice: only variables should be passed by reference
- meta_query with multiple values optimization
- Get a single post ID based on an exact match of 1 or more meta values
- wordpress Meta_query between numbers range (not working)
- meta_query with multiple key
- Order by meta value
- meta query based on month regardless of year
- meta_query in WP_User_Query not working – returns every user, not just users where key & value matches
- meta query or with meta value
- Multiple meta_key ordering with pre_get_posts
- meta_query array in ‘values’ returns an error
- Child pages not affected by orderby
- Unable to use meta_query between currency values when value is over 1 million
- Filtering all posts AND sticky posts through meta_query
- Sort posts using multiple custom fields and menu_order in single query?
- How to cache the results of a query and display the cached results
- Order posts by taxonomy terms
- How to send variable to wp meta_query value?
- Tax query get first product with attribute value in pre_get_posts
- Order column custom date using pre_get_posts
- Random order not working correctly when using default loop + $query->set
- Meta query orderby meta_value_num sorting by role first
- Multiple orderby date arguments
- Reading Content in an Array as it relates to a meta_query
- Pre get posts sort by meta key returns no results if meta key does not exist
- Sorting with meta_query and multiple, optional meta keys
- Meta_Query with multi select values
- Get Posts from Custom Meta Query
- Meta query broken since 4.7.4 Update
- Best way to Order Post in Home without a plugin
- How to get meta value based on latest post id with group by term name
- WP search in metadata post
- Using orderby with 2 meta keys
- Order posts by custom column using pre_get_posts
- Multiple Queries with meta_query
- Pre_Get_Posts order DESC not registering
- meta_query and strange orderby behaviour
- Sorting not working with get_posts
- WordPress Meta Query very slow with NOT EXISTS comparison
- ACF meta_query field treated as “0” resulting in false negative search when testing ranges
- Is it possible to customize meta query in this way?
- Ordering WP_Query results by second meta_key
- How to put posts with some taxonomy on top of others in `pre_get_posts`
- How making a new search box in admin post table working on a specific column
- wp_user_query with meta_value_num for leaderboard