Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section class="revi">
- <div class="container">
- <div class="row rowtest">
- <?php
- $args = array(
- 'post_type' => 'reviews',
- 'post_status' => 'publish',
- 'posts_per_page' => '3',
- 'order'=>'ASC',
- 'paged' => 1,
- );
- $loop = new WP_Query($args);
- while ($loop->have_posts()) :
- $loop->the_post();
- ?>
- <div class="col-12 reviews">
- <div class="firstrw">
- <div class="foto-wrap">
- <?php the_post_thumbnail();?>
- <div class="firstrw_content">
- <h1><?php the_title();?></h1>
- <p id="data"><?php echo get_the_date( 'd-m-Y' ); ?></p>
- </div>
- </div>
- <div class="star-rating">
- <p><?php the_field('stars');?></p>
- </div>
- </div>
- <?php the_content();?>
- <hr>
- </div>
- <?php
- endwhile;
- wp_reset_postdata();
- ?>
- <button class="loadmore hvr-bounce-out" id="showmorebutton">
- Show More Reviews
- </button>
- </div>
- </div>
- </div>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement