I think the orderby key is at the wrong place. It think it should be like this:
$args = array(
'post_type' => 'event',
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_key' => 'your key to order',
'meta_query' => array(
'key' => 'Date Ordering Format',
'relation' => 'AND',
array(
'key' => 'Event Type',
'value' => '4. take-out tuesday',
'compare' => 'LIKE'
),
array(
'key' => 'Past Event',
'value' => 'Past',
'compare' => 'EXISTS'
)
)
);
Related Posts:
- How to query posts based on lat-lng coordinate as post meta?
- Set Alias for meta_query arguments in get_posts()
- Add indexing to meta_value in wp_postmeta
- Is it possible to orderby multiple meta_keys when using meta_value_num?
- Custom WP_Query order by post_meta and (author) user_meta
- Using custom meta_query with relation not working as expected
- Perform query with meta_value date
- WP_Query meta_query where meta value ends in space
- Nested query inside Logical operator OR not working in meta_query
- What is an efficient way to query based on post_meta?
- How do I create my own nested meta_query using posts_where / posts_join?
- How to order a post type with meta_value_num and if meta_value_num does not exist then order by date
- Compare two meta-fields in a wp_query (where meta-field-A is larger than meta-field-B)
- Exclude post on loop by multiple meta key value
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- meta_key and meta_value not working together
- Order posts by meta value and Date
- Query sticky posts with thumbnails
- Order WP Query posts by custom order calculated from post meta values
- how to speed up a complex wp_query?
- Meta query with order by another custom field
- How to query for custom field within Gutenberg block from outside of that post? [closed]
- Meta Query for specific months
- Meta query with JSON value
- Get meta info related to current post
- Creating arguments from loop for WP_Query meta_query
- Order a query result by a numeric meta key even if it does not exist, but put the posts with meta key first
- Single meta_query query using OR instead of AND in request’s WHERE statement
- How to do meta_query for attachments?
- SQL: What is wrong with the following query (generated by WordPress WP_Query, ordering prices)
- Using meta_query with multiple keys and compare values
- Mysql query and order meta value
- Why isn’t my `meta_query` array functioning properly?
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- meta_query BETWEEN, but the range is stored in the custom field
- Suggestions on making this query/code more performant
- Is it possible to set specific posts to show first in a query?
- Order by meta value (numeric value lower to higher)
- Large AND OR query timing out
- Order ascending is ignored in meta query?
- WP_Query with different postmeta filter for each categories
- Slow WP_Query with ‘OR’ on meta_query
- Query posts with “non set” meta value
- Ordering a mysql style datetime stamp with meta_query
- Wp_query with 2 meta keys and array of meta values
- Advanced WP_Query with meta_query, orderby?
- meta_query: check if number exists
- Event with multiple dates, display events chronologically
- Issues with search after added meta_query
- WP_Query: apply an SQL function to meta fileld value
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- How to create dynamic value in WP_Query meta_query
- query post by author gender
- How do I add an item to the WP admin menu?
- Multiple meta query from array
- WP Query / Meta Query [duplicate]
- Query posts by searching for a string in a meta field
- Query multiple post types, but different order for each
- How to add date_query to meta_query array
- Order by the first array within a meta_query
- Query ACF relationship field – Comparator IN – Value array
- Combine query in WP_User_Query()
- Multiple nested meta queries
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- Custom meta_query order for Elementor based on post meta key [closed]
- How can I modify the query by adding to the existing query?
- ElasticPress is (aparently) messing with my search filters
- Multiple meta_query not returning rows
- WordPress Query custom ordering by temporary variable
- Check for not NULL not working in meta query
- Comparing Meta Field date in WPQuery using Meta_Query?
- How to create better WP_Query to look for date time which is anywhere between two meta values?
- Query against multiple locations within single custom post type post
- Order by Date Custom Field
- Filtering WP_Query based on wp_postmeta keys values
- WP Query. Ordering posts by another post types meta
- Multiple meta_query not working
- compare for multiple meta values for same key in wp_query
- datetime picker, timestamps and meta queries
- WP_Query with meta_query won’t orderby
- Get posts meta_query by repater field
- Query 3 meta_key and orderby
- wp_query sorting – one specific meta_key value at last and then sort by create date
- Saving custom fields for WP_Query to retrieve
- meta_query not working with the_content()
- WP_Query with MetaQuery issue
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Get closest event where meta_key field is an array
- Orderby Meta Value and Query from Meta Query
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Set right order for query that returns posts based on two custom fields
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Meta_query weird behaviour
- WP_Query with several meta_query-statements and order by meta_value
- Use meta query only 3 or more results?
- Display only posts with thumbnails
- WordPress – Optimize the Meta Query for 3 meta keys at a time
- How to use meta_query to retrieve posts from multiple custom post type
- WP_Query filtering in ACF field containing dates