| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/themes/education-zone/sections/ |
Upload File : |
<?php
/**
*
* Testimonial Section
*/
$section_title = get_theme_mod( 'education_zone_testimonials_section_title' );
$testimonial_cat = get_theme_mod( 'education_zone_testimonial_category' ); ?>
<div class="image-wrapper">
<div class="container">
<?php education_zone_get_section_header( $section_title );
if( $testimonial_cat ){
$args = array(
'posts_per_page' => -1,
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-gallery' ),
'operator' => 'NOT IN',
)),
'cat' => $testimonial_cat,
);
$qry = new WP_Query( $args );
if( $qry->have_posts() ){ ?>
<ul class="testimonial-slide owl-carousel">
<?php
while( $qry->have_posts() ){ $qry->the_post(); ?>
<li>
<blockquote>
<?php the_content(); ?>
<cite>
<div class="text">
<?php if(has_post_thumbnail()) the_post_thumbnail( 'education-zone-testimonial' ); ?>
<span><?php the_title(); ?></span>
</div>
</cite>
</blockquote>
</li>
<?php
}
wp_reset_postdata();
?>
</ul>
<?php
}
}
?>
</div>
</div>