query_posts() help
-
Hi,
I have a query_post() that need to order first by meta data in descending order and then by random.
I have: query_posts($GLOBALS[‘query_string’].’&orderby=packageID rand&order=DESC’)
This works in that is first orders by packageID and then randomly orders within the results. The only problem is the order=DESC doesn’t work.
Is there a way to get is to order by the first column in DESCENDING order and then radomise the results?
If not, can the generated SQL from the query_posts() be output so I can create my own query?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘query_posts() help’ is closed to new replies.