Advertisement
delvinkrasniqi

html

Feb 5th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <section class="revi">
  2.  
  3. <div class="container">
  4. <div class="row rowtest">
  5. <?php
  6. $args = array(
  7. 'post_type' => 'reviews',
  8. 'post_status' => 'publish',
  9. 'posts_per_page' => '3',
  10. 'order'=>'ASC',
  11. 'paged' => 1,
  12. );
  13. $loop = new WP_Query($args);
  14. while ($loop->have_posts()) :
  15. $loop->the_post();
  16. ?>
  17.  
  18. <div class="col-12 reviews">
  19. <div class="firstrw">
  20. <div class="foto-wrap">
  21. <?php the_post_thumbnail();?>
  22. <div class="firstrw_content">
  23. <h1><?php the_title();?></h1>
  24. <p id="data"><?php echo get_the_date( 'd-m-Y' ); ?></p>
  25. </div>
  26. </div>
  27. <div class="star-rating">
  28. <p><?php the_field('stars');?></p>
  29. </div>
  30. </div>
  31.  
  32. <?php the_content();?>
  33. <hr>
  34. </div>
  35.  
  36.  
  37.  
  38. <?php
  39. endwhile;
  40. wp_reset_postdata();
  41. ?>
  42. <button class="loadmore hvr-bounce-out" id="showmorebutton">
  43. Show More Reviews
  44. </button>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement