[wp-hackers] query_posts orderby not working properly

Brian Fidler fidler.brian at gmail.com
Sat Aug 14 03:57:03 UTC 2010


I'm having a problem getting a query to order properly. This is what I
currently have:
query_posts('cat='.$category->cat_ID.'&posts_per_page=-1&orderby='.
$post->post_title . '&order=DESC');

I've also tried:
query_posts('cat='.$category->cat_ID.'&posts_per_page=-1&orderby=title&order=DESC');

Any idea what I could be missing?

thanks
brian


More information about the wp-hackers mailing list