post__in orderby not working when passed in an array to orderby
|Reported by:||kelvink||Owned by:|
Currently order by post__in only works if you pass it as a string. If you pass it inside an array, it won't orderby post__in at all.
<?php $query = new WP_Query( array( 'post__in' => array( 1,2,3,4,5,6,7,8 ), 'orderby' => array( 'post__in' => 'desc', 'title' => 'asc' ) ));
Change History (12)
- Keywords reporter-feedback added
- Version changed from trunk to 4.6
2 weeks ago
- Keywords needs-patch added; reporter-feedback removed
- Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.