Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ($i=5; $i>=1; $i--) {
- $properties = new WP_Query(
- array(
- 'posts_per_page' => -1,
- 'post_type' => 'property'
- )
- );
- while ( $properties->have_posts() ) : $properties->the_post();
- $user_ID = get_current_user_id();
- $prop_ID = get_the_ID();
- $rating = get_post_meta(get_the_ID(),'pro_rating_' . $prop_ID . '_' . $user_ID . '',true);
- if ($rating == $i) { ?>
- <?php } ?>
- <?php endwhile?>
- <?php custom_pagination()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement