Query_posts restricted to one meta_value but sorted by a different meta_value
-
Is it possible to do a query_posts and retrieve posts with a particular meta_key meta_value, but then sort the result by a different meta_key?? For instance, I have a category of products, and want to be able to restrict it to a given brand name (stored as a meta_key, which I have accomplished, but then I want to sort the result by price (also stored as a meta_key). I can only figure out how to do one or the other- not both. Thanks!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Query_posts restricted to one meta_value but sorted by a different meta_value’ is closed to new replies.