Order by meta value, pro first, then free
-
i want Order by meta value, pro first, then free as well as pro in randowm order.
query_posts($query_string . ‘&meta_value=pro&orderby=rand’);
I get pro list with random, but I want pro as well as free, but with pro list first, then meta_value free list.
I also set orderby meta_value
query_posts($query_string . ‘&orderby=meta_value_num’);
This does not work, and in query string default for cat. It will take orderby date with both meta value = pro and free.
Any suggestions?
query-posts
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Order by meta value, pro first, then free’ is closed to new replies.