Please use ‘meta_value’ => ‘meta_value_num’ instead of ‘AC’. You can also take help from documentation to see which parameters you can pass for order attribute in the query => https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Related Posts:
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- ACF Relationship Field Search Filtering [closed]
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- meta_query with array as value
- pre_get_posts filter meta_query without conflicting existing meta_query
- If two first numbers exist in wp_meta_query value
- WP_Query meta_query >= date
- pre_get_posts order by not working
- Single meta_query query using OR instead of AND in request’s WHERE statement
- ACF Date Based wp_query
- Custom query based on meta key – Reduce three states to two in results?
- What is the random string I am seeing when I use get_query_var?
- Any number in meta key (wp query)
- Using meta_query with multiple keys and compare values
- Help ordering Post loop by two meta values
- Order ascending is ignored in meta query?
- WP_Query with meta_query dosen’t return results
- Multiple meta_key ordering with pre_get_posts
- Sorting search results with custom dropdown
- Custom query filter by ACF date custom field
- Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- Excluding posts from search results page with meta query not working
- meta_query is overriding default search
- WP_Query, ACF field and array
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- Limit default Search query to post_title
- Get posts meta_query by repater field
- How can I modify standard search query to include also ACF custom fields values?
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Looking for a way to exclude frontpage and nav menu from query filter
- Get posts using multiple values from ACF checkbox as meta query wordpress
- How do I subquery with custom meta fields?
- Use value from meta key array for use in WP_Query
- How to use meta_query to retrieve posts from multiple custom post type
- WP_Query filtering in ACF field containing dates
- How to query posts based on lat-lng coordinate as post meta?
- Set Alias for meta_query arguments in get_posts()
- Is it possible to orderby multiple meta_keys when using meta_value_num?
- Using custom meta_query with relation not working as expected
- WP_Query meta_query where meta value ends in space
- Nested query inside Logical operator OR not working in meta_query
- SQL Statement generated by WP_Query not producing expected results
- 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
- Can’t sort order of wp_query with 2 meta keys
- Exclude post on loop by multiple meta key value
- Order posts by meta value and Date
- Query sticky posts with thumbnails
- Meta query with order by another custom field
- Can an array be used as a meta_query value?
- Order a query result by a numeric meta key even if it does not exist, but put the posts with meta key first
- SQL: What is wrong with the following query (generated by WordPress WP_Query, ordering prices)
- new WP_Query to get max price meta value not working
- WP_Query, pre_get_posts and offset
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- Suggestions on making this query/code more performant
- Order by meta value (numeric value lower to higher)
- Large AND OR query timing out
- WP_Query with different postmeta filter for each categories
- Slow WP_Query with ‘OR’ on meta_query
- wordpress ajax relationship query
- How to filter a query by multiple meta keys and order by other meta keys
- using pre_get_posts for search results not found
- Hide elements outside loop based on query
- Meta Query doesn’t works as espected
- Advanced WP_Query with meta_query, orderby?
- 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->found_posts not returning correct value
- Replace wp_query with wp_user_query
- Custom meta_query order for Elementor based on post meta key [closed]
- Meta query ignores multiple values of the key
- Multiple meta_query not returning rows
- order posts by a secondary query that counts items
- Check for not NULL not working in meta query
- Query against multiple locations within single custom post type post
- meta_query compare > not working
- Query string order by custom field
- Saving custom fields for WP_Query to retrieve
- Modify query to exclude certain ids and certain parents and its corresponding children
- Filter posts/pages by user_role array
- WP_Query with MetaQuery issue
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- WP_Query with meta_value_num and meta_query not paged correctly
- Post Query not working after updating to 4.1
- Orderby Meta Value and Query from Meta Query
- Sort Posts with custom meta key by default which is currently set as optional
- Custom post types loop on a page template
- Output ACF field dynamicaly within a taxonomy loop [closed]
- How do I have multiple metaqueries inside one wordpress query
- Display only posts with thumbnails