I can’t get that to work in 2.6.2 either. Seems it always want to be in descending order, at least when using the orderby clause.
Now, in 2.7-almost beta, it seems the problem is fixed, if that is any consolation.
Thanks. I have to wait?
I hope 2.7 will upgrade the interface for tag and category on the same usage level: tag=’taga+tagB’ -> category=catA+catB.
I think you are referring to Trac Ticket 5433 and that is now being viewed as an enhancement though some are pushing to get that in 2.7.
I’m experiencing the same problem. In my case this has nothing to do with tags, just categories. Using query_posts(‘cat=-‘ . $category . ‘&order=DESC&orderby=date’); (where $category was assigned immediately before this call produces the correct list, but in ASC order) It would seem that since the default sort order for this query call is DESC, this is a bug.
Just bumping this. Does anyone know if this has this been fixed or have a work around for selecting posts that are in multiple categories and getting the DESC order?
Thanks
I just found the solution, you have to specify an order and orderby together
query_posts(array(‘category__and’=>$categorys, ‘orderby’=>ID,’order’=>DESC));