you need to use
'orderby' => 'meta_value_num',
also if you are ordering dates, the best advice is to put them in an easy to order way such as 2012-12-31
Related Posts:
- What is the most efficient way of querying posts based on visits and date for current day?
- Query Custom Meta Value with Increment
- Pull post meta with post_query?
- WordPress query posts with multiple post_meta data
- WP_Query meta compare must include ALL array values
- Query against multiple locations within single custom post type post
- I need query_posts() to order results first by a meta value and then by post ID
- WP_Query with child element
- How to get several fields from wp_query?
- How to query post ids liked by the Author
- query by meta value then date and not empty meta value
- Query posts by meta value and sort by another meta key
- How to get posts that have certain meta key value and order based on another meta key’s value
- WP_Query vs get_posts
- Order by optional meta key?
- Reduce or prevent calling of update_meta_cache
- Query WooCommerce orders where meta data does not exist
- When should you use wp_reset_postdata vs wp_reset_query?
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- Show only oldest post by author
- How to count post meta key values for all posts in database
- How should I use posts_where to change meta_value from a string to integer?
- WP Meta Query for some meta (array) values
- Dynamically Override Fancy Title – Part II
- Transient pagination not working properly
- Get the post permalink within the loop but without additional DB query
- List the 5 most recent child pages
- Custom Post order for homepage
- Get image of latest post from taxonomies/categories
- Page navigation doesn’t show when query category
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- Undefined WP_Query::has_posts()?
- Is it possible to dynamically get queried term AND taxonomy?
- Minimising Database Queries when using Advanced Custom Fields
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- WordPress Orderby Numeric Value Not Working
- Query total number of posts
- How to access a query twice in different template files?
- Creating a custom search for a specific post type
- Add quicklink to in the Admin posts page where I can query by a meta_key
- Performance when getting post meta for post retrieved by meta value
- How to use the query hook/filter?
- Query posts intersecting tags and categories
- Order by empty custom field
- How do I query for posts by partial meta key?
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- New WP_Query loop in admin causes problems
- How to increase load time of an archive/search page (WP_Query)
- Query Page Content From Theme Options?
- Hide posts with meta key in WP_Query
- Include current post into loop
- search serialised meta_value for date value?
- Yoast primary category query modification
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Nested array issue in meta_query
- Write WP Query that selects posts that are part of the same two categories
- WP_User_Query orderby meta_val_num
- WP_Query custom order and pagination
- Unable to paginate a custom page query
- Include one page/post into query which is already returning posts
- Why doesn’t my WP Meta Query return any results?
- Disable (or limit) queries when certain content (or data) is not needed (or showed)
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Filter products on category AND tag
- Exclude post from wp_query based on custom field boolean
- show most viewed post
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- Display posts from multiple value in meta separated by comma
- How to get meta key list efficiently?
- Order posts by tags count?
- Why pagination is not working with tax_query param?
- Strange results from WP_Query
- update_post_meta performance in a loop woocommerce
- update_post_meta performance in a loop woocommerce
- Is there a way to control both Order By and Order query parameters from one input field
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- WP_Query & Duplicate entries
- return child post if available otherwise parent post
- Search has query that will return no results
- WP Query – Search in title or author_name
- URL to Post Archive of Custom Query
- Query by meta value (add a dropdown of all values)
- Linking posts together with Advanced Custom Fields “both ways”
- orderby in WP_QUERY – Use the order from the Dashboard
- Random posts in WP_Query when searching by tag
- Query posts in current category but not attachment format
- WP_Query always returning the last custom post
- wp_query – Modify $query to include duplicate content
- Optimising specific Query with ACF meta objects
- Combine privileged users array with my current query
- Horizontally paginate through sets of blog posts?
- Pagination not working with WP_Query (creates links but no page)
- Query custom post type by date field only working when two posts match the query
- meta_query dates from an array
- Divide WP_Query posts by date & post type
- Query Posts by date range with fixed beginning and end
- New WordPress WP Query using posts from certain categories
- wordpress sorting using array merge by price in ascending order but price with 0 must be show last
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- wp_query order by rand is repeating posts