Thanks karpstrucking,
This was a simple case of me needing to understand the Query better. Once I fully understood that wp_query
returns a string for the sql query, it was a simply case of doing what I needed to do to correction the event_date
value, concatenating on the additional title
or meta_num_value
and returning that.
Then I would just have to add_filter
the orderby
.
Related Posts:
- How to order posts tag by tag?
- Order by title without taking into account ‘the’
- Filtering by multiple conditions in the loop
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Sorting: custom query with orderby meta_value_num THEN by title
- How to list some posts first in the loop based on post id
- WP_Query – filter or directly?
- Order posts by ID in the given order
- What is the most efficient way of querying posts based on visits and date for current day?
- Custom WP_Query order by post_meta and (author) user_meta
- Sorting posts by custom date fields (non standard date format)
- Overriding The Loop with filter or hook
- Custom query incorrectly returning everything [closed]
- WP Rest API v2 return posts with specific tag
- How to filter sql only for a specific post type
- WP_Query sort by comment meta data
- How to support multiple search terms query within one process?
- Order posts by tags count?
- Orderby = none not working [duplicate]
- WP_query ‘orderby=none’ Problem
- Order posts by date and then by custom field
- Order by the results of a function with WP_query
- How to order posts in wp_query by a meta_value of the corresponding author
- Order by menu structure
- Ordering by meta_value AND date NOT WORKING with wp_query
- WP_Query orderby breaks when using AJAX?
- Order WP Query posts by custom order calculated from post meta values
- Custom Post order for homepage
- Change default ordering of taxonomy terms – pre_get_terms
- Refine/Filter WP_Query Posts with jQuery or Ajax
- Wp query orderby ‘title’ doesn’t work
- How to apply filter inside a single wp_query?
- How can I order Wp_Query hierarchically?
- When to add_filter() to Custom Query
- Sorting posts DESC based on the number of comments using WP_Query
- Order by custom table and multiplication
- (Solved) WP_Query ($ args) -> How to sort letters and numbers within the same array
- How to create a WordPress Post Filter that users can use to filter posts by year?
- add_filter() depending on search term
- query_vars filter not working even though query string parameter is present
- Complex WP_Query order request: DESC by day, but then ASC by time
- How to set multiple `orderby` in query argument?
- How do I run through a WordPress loop called from a filter function?
- wp_query ‘s’, search filter with pagination is not working
- Sort wordpress custom posts based on meta value
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- Bypass “supress_filters” in WP Query
- How to use the query hook/filter?
- Order by summing multiple values
- Understanding the orderby in WP_Query?
- Display filtered results into custom page
- Order by empty custom field
- Help ordering Post loop by two meta values
- Order ascending is ignored in meta query?
- How to alter local query, not main query [duplicate]
- How to filter a query by date in a shortcode?
- How can I allow sticky posts but cap the query to 1 post?
- Ordering posts by an array
- Changing the default wp_search_stopwords
- How to Order a list of taxonomies? orderby?
- Is it possible to add an argument to a custom function added to a filter hook?
- Child pages not affected by orderby
- Sorting posts by Multiple custom fields in defined order
- Randomly select one of last 3 posts
- WP_Query orderby random do not repeat infinite scroll – one loop
- how to retrieve WP_Query without ordering by date [duplicate]
- meta_query weird behaviour, static int will work, but not user data
- WP_Query orderby
- How can I order a post query’s results based on the number of matching taxonomy terms?
- How to sort store location by specific category order in WP store locations
- How to sort wordpress posts already selected by WP_QUERY
- Custom WP Query order function possible?
- WP_Query random ordering not working since 5.4
- Meta query orderby meta_value_num sorting by role first
- Order by value of Custom Field using url string
- WP Query with meta queries
- Order Element By Custom Field in WordPress
- Sorting with meta_query and multiple, optional meta keys
- WP_Query: custom orderby (not ASC nor DESC)
- get term objects and post objects in query
- How to set selected attribute on option after filter query?
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- Issue generating custom filter for cpt admin columns
- Display three sequential posts on each page load, without repeating previous
- Find by post_meta, then sort by post_meta, then sort by date (wp_posts)
- Custom query with post_class filter using current_post not working
- Using orderby with 2 meta keys
- Filter WP_Query output before it is accessed (pre_get_posts)?
- query_posts with sorting on a custom datestamp
- Loop the posts between two dates selected using jquery datepicker
- Posts2Posts, wp_query and orderby issue
- Change posts archive ordering
- Edit WordPress loop, taxonomies, & filter
- Get posts that were most recently tagged
- List categories using WP_Query
- Why does wp_query only display the most recent post when using order ASC?
- How to put posts with some taxonomy on top of others in `pre_get_posts`
- WP_Query sort by ACF date field (newest first) with blank dates first
- WP_Query filter Posts by timestamp event (range start and end) and by month (next 12 month)
- new WP_Query with order args – no more distinction between categories