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
- compare meta_query in get_posts arguments
- Display products from specific category in shop page
- How to uniquely identify queries?
- Query by meta_key and order by meta_value_num return orderby date
- Wp_query order by multiple custom fields?
- Single page theme that uses pages for the content
- Order by meta_key in custom post type doesn’t affect the query
- Multiple meta queries but arrange by specific meta value order
- When querying a combination of posts and other meta fields, is there a better solution than directly modifying the WHERE value?
- Order Posts by meta value AND published date
- ACF – Get lowest & highest value from field
- What format does the meta_query TIME type require?
- Formulate a url to show posts with both taxonomy terms
- Adding a parameter to the default query
- Using WP_Query in “parse_query” or “pre_get_post” in Posts2Posts
- WP_Query filter and order by meta ordering by wrong joined table
- WP_Query last five posts, simply ordered by meta_value
- How To Fix WP Query Returns Results But Shouldn’t?
- meta_query in WP_Query value is not accepting array
- Is there a way to work with a specific the_field from an already queried post? [closed]
- Changing sort order for presentation by Jetpack infinite scroll
- get posts by meta_key from inside key of post meta
- Help optimizing slow WP_Query with meta_query
- Meta Queries – should nesting work after WP 4.1?
- Filter and Order by Multiple Custom Meta Values
- Meta Query relation “AND” then set array accordingly
- 2 weeks ago from meta query meta value
- Is there a better way to pull in custom content without querying posts?
- Query with meta_query and tax_query together not working properly
- Array as ‘key’ in WP_Query
- Woocommerce – exclude only older out-of-stock items
- Is it possible to query a custom field where the value is between two fields?
- Filter posts by comparing custom meta value against postdate
- Searching for meta_key returns 0 posts
- ACF accessing a field from the query, but not in post
- filter wp_query result with custom field values
- meta_query fails to compare on values containing apostrophes
- Add ACF field in a query
- How I can change the condition or compare operator for WP_Query in pre_get_posts
- Check if searched number is within the post meta value
- add_query_arg to compare and display events from a certain date
- WordPress dynamic AJAX query
- WP_Query not returning correct result with meta_query parameter
- Exclude post with taxonomy and from the terms (taxonomy & tag) posts count
- How do i create a custom post query when the meta value is an array?
- Custom Meta Query doesn’t work the same on two site
- WP Query – grouping posts by same meta key, adding together values from another key
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- Query for current post
- Custom query to retrieve oldest post and retrieve others with date interval
- Why does my output of get_the_ID() change after a wp_query?
- Very slow query generated getting meta data from posts
- Filtering WP_Query based on wp_postmeta keys values
- 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
- meta_query only check if both value are set
- Extending WP Query: Custom geolocation meta values work, but tax_query breaks
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Adding a Theme Customizer Control for Posts_Per_Page
- Creating Custom Query
- WP_Query by meta key not returning any posts
- How do I have multiple metaqueries inside one wordpress query
- Display only posts with thumbnails