bib_wp/abchospitalitynepal.com/wp-content/themes/abchospitality/bib-parts/testimonials.php
2024-03-12 15:59:02 +05:45

47 lines
1.8 KiB
PHP

<!-- TESTIMONIAL AREA START (testimonial-4) -->
<div class="ltn__testimonial-area section-bg-1 pt-90 mb--100">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="section-title-area ltn__section-title-2 section-title-style-3 text-center">
<div class="section-title-in">
<h1 class="section-title" style="color:#017BAA">Client Feedbacks</h1>
</div>
</div>
</div>
</div>
<div class="row ltn__testimonial-slider-3-active slick-arrow-1 slick-arrow-1-inner">
<?php
// Check if the ACF repeater field exists
if( have_rows('client_feedback', 180) ) :
// Loop through the repeater field
while( have_rows('client_feedback', 180) ) : the_row(); ?>
<div class="col-lg-12">
<div class="ltn__testimonial-item ltn__testimonial-item-4">
<div class="ltn__testimoni-img">
<img src="<?php the_sub_field('image'); ?>" alt="#">
</div>
<div class="ltn__testimoni-info">
<p>
<?php the_sub_field('description'); ?>
</p>
<h4><?php the_sub_field('name'); ?></h4>
<h6><?php the_sub_field('job_title'); ?></h6>
</div>
<div class="ltn__testimoni-bg-icon">
<i class="far fa-comments"></i>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<!-- -->
</div>
</div>
</div>
<!-- TESTIMONIAL AREA END -->