Order a query by meta_value and *then* by title
-
I’m using the following query to display posts marked as ‘premium’ first, like so:
<?php $query = 'post_type=recruiter-partner&meta_key=premium&orderby=meta_value&paged=' . $paged; ?>
Although I want the premium posts to show up first, I still want everything ordered by title.
Is there a simple way to achieve this in the query? Or would I have to re-order it myself?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Order a query by meta_value and *then* by title’ is closed to new replies.