diff --git a/wp-includes/query.php b/wp-includes/query.php index bd511182cb..dc56be47e9 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2343,6 +2343,7 @@ class WP_Query { switch ( $orderby ) { case 'menu_order': + $orderby = "$wpdb->posts.menu_order"; break; case 'ID': $orderby = "$wpdb->posts.ID";