[wp-hackers] Multiple orderby and order options in WP_Query

patrik.bona at mrhead.sk patrik.bona at mrhead.sk
Tue Apr 5 14:07:41 UTC 2011


MySql support this so there is no need to do it in PHP.

Patrik

> MySQL does support ordering by multiple columns, but not in the sense of
> ordering one ASC and the other DESC.  So separate your two paradigms, let
> MySQL take care of one for you, then manually do the other via PHP.
>



More information about the wp-hackers mailing list