• Skip to main content
  • Skip to primary sidebar

WordPress, Genesis Framework and Storefront customization tutorials

  • Archive
    • Free
    • Premium
  • Blog
  • About
  • Contact
  • Newsletter
  • Login
Home ยป Loop Zillow CPT

Loop Zillow CPT

<?php
$the_query = new WP_Query( $args );
?>
 
<?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

<div class="review-content">
    

    
     <?php include('stars-main.php'); ?>
         <label class="highly">
             <?php if( get_field('main_review') == '5') : ?>
                 Highly likely to recommend
             <?php endif; ?>
             <?php if( get_field('main_review') == '4') : ?>
                 Likely to recommend
             <?php endif; ?>
             <?php if( get_field('main_review') == '3') : ?>
                 Might recommend
             <?php endif; ?>
         </label> <br>
     <ul class="review-metadata">
         <li><?php the_title(); ?></li>
         <li><?php the_field('short_description'); ?></li>
         <li>
                <?php if( get_field('primary_point_of_contact') ): ?>
                    <li><?php the_field('primary_point_of_contact'); ?></li>
                <?php endif; ?>
         </li>
     </ul>
     <div class="reviews-sub-ratings">
         <ul class="ratings">
             <li><span class="ratings-col">Local knowledge:</span> <?php include('stars-local.php'); ?></li>
             <li><span class="ratings-col">Process expertise:</span> <?php include('stars-process.php'); ?></li>
             <li><span class="ratings-col">Responsiveness:</span> <?php include('stars-respo.php'); ?></li>
             <li><span class="ratings-col">Negotiation skills:</span> <?php include('stars-nego.php'); ?></li>
         </ul>
     </div>
     <div class="review-body">
         <?php the_field('review'); ?>
     </div>
    
</div>

<?php
    endwhile;
else:
    echo 'No reviews yet.';
endif;
?>
 
<?php wp_reset_postdata(); ?>

Filed Under: Premium Tagged With: CPT

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

Gabor Flamich

Hi! I'm Gabor.
I write tutorials on WordPress and WooCommerce.

MacBook

12 Essential Snippets for Genesis Developers

Subscribe to my Newsletter to view my basic collection of Genesis snippets that I use for my projects!

Sign Up for Free
  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube
UpdraftPlus Premium

Tags

ACF Ajax Analytics API Bootstrap Breadcrumb category CPT CSS fetch FSE Genesis Google Maps Gutenberg HTML Isotope JavaScript jQuery loop Map Menu Parallax PHP Rest API SASS SEO SQL Storefront SVG tab tag manager tags Taxonomy Tool upsell Webpack Wholesale WooCommerce WordPress WPML

Disclosure: Some of the links in this site are affiliate links. I will be paid a commission if you use this link to make a purchase.

  • Privacy Policy / Terms of Service
© 2025 WP Flames - All Right Reserved