i’m developing a theme and i want to display the “review stars” of the post in my custom post loop. (Please check the design below)

Design for loop 1 ||
Design for loop 2

Plugin URL: wordpress.org/plugins/wp-review/

One of my custom loops for reference:

            <ul class="orbit-container">
               <?php if ( $lf_mod_two_cat_1_slide_qry->have_posts() ) : while ( $lf_mod_two_cat_1_slide_qry->have_posts() ) : $lf_mod_two_cat_1_slide_qry->the_post(); ?>
               <li class="is-active orbit-slide">
                  <div class="module-one-typo rel">
                     <?php if ( has_post_thumbnail() ) : ?>
                     <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
                     <?php the_post_thumbnail(array(370, 250)); ?>
                     <?php else: ?>
                     <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><img src="<?php echo get_template_directory_uri(). '/romisa-assets/img/sample/370x250.png'; ?>" alt="">
                     <?php endif; ?>
                     <h3><a href="<?php the_permalink(); ?>"><b><?php the_title(); ?></b></a></h3>
                        <span><i class="fa fa-calendar"></i> <?php the_time('F j, Y');; ?> &nbsp;</span>
                        <span>  &nbsp;<i class="fa fa-comments-o"></i> <?php echo get_comments_number(); ?></span>
                        <span>  &nbsp; <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a></span>
                     <p><?php echo excerpt(19); ?></p>
                     <a class="module-one-more text-right trans1" href="<?php the_permalink(); ?>"><b><?php echo $lf_mod_two_cat_1_rmore; ?> <i class="fa fa-arrow-circle-right"></i></b></a>
                     <p class="tagtwo toptag upper"><a href="<?php echo get_category_link( $lf_mod_two_cat_1_slide ); ?>"><?php echo get_cat_name( $lf_mod_two_cat_1_slide ) ?></a></p>
               <?php endwhile;  ?>
               <?php endif; ?>       

Read more here: "Reviews Stars" part only in post loop – WP Review plugin


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: