[wp-hackers] Order by +/- ?

Stewart Ugelow stewart at ugelow.com
Thu Feb 2 19:10:58 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`...

Although passing the order is problematic if you're not using the
mod_rewrite rules.

http://trac.wordpress.org/ticket/2333

--Stewart

--

Stewart Ugelow
www.ugelow.com


More information about the wp-hackers mailing list