[wp-hackers] Order by +/- ?

Sam Angove sam at rephrase.net
Thu Feb 2 14:43:47 GMT 2006


> > Are there currently any method/arguments in place to flip the
> > chronological (or other) order of items etc returned? i.e. something
> > that wraps ...ORDER BY ASC/DESC
>
> On line 651 of classes.php:
> $orderby = apply_filters('posts_orderby', $orderby);
> You can use that filter to modify the query.

That, or pass `order=ASC`/`order=DESC`...


More information about the wp-hackers mailing list