Listing Posts Between Two Values
-
I currently have a post that loops through my custom post type ordering by a custom field called “price”.
<?php query_posts(array('post_type'=>'listings','orderby'=>'meta_value_num','meta_key'=>'price','order'=>'ASC','posts_per_page'=>5,'paged'=>$paged)); ?>
What I would like to do now is list posts where “price” is less than 200 between 200 and 350, and over 350.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Listing Posts Between Two Values’ is closed to new replies.