Advertisement
Guest User

Untitled

a guest
Sep 13th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. for ($i=5; $i>=1; $i--) {
  2. $properties = new WP_Query(
  3. array(
  4. 'posts_per_page' => -1,
  5. 'post_type' => 'property'
  6. )
  7. );
  8.  
  9. while ( $properties->have_posts() ) : $properties->the_post();
  10.  
  11. $user_ID = get_current_user_id();
  12. $prop_ID = get_the_ID();
  13. $rating = get_post_meta(get_the_ID(),'pro_rating_' . $prop_ID . '_' . $user_ID . '',true);
  14. if ($rating == $i) { ?>
  15.  
  16. <?php } ?>
  17. <?php endwhile?>
  18. <?php custom_pagination()
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement