Ordering a mysql style datetime stamp with meta_query
‘orderby’ => ‘meta_value_num’ will try to force the value to a number by adding 0. In other words, “2013-09-30 22:00:00″+0 When I tested that both PHP and MySQL converted the string to 2013, which is not what you want. That particular date format, and only that date format, will sort correctly if you just leave … Read more