HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/qcr24/wp-content/themes/syscentric/Page-Templates/template-testimonial.php
<?php
/*
Template Name: Testimonial
*/
get_header();
?>

<!--=================================
Testimonial and Brands -->
<section class="space-pt">
    <div class="container">
        <div class="row mb-0 mb-lg-4">
            
            <?php
                if ( query_posts( array( 'post_type' => 'testimonial', 'order' => 'ASC', 'posts_per_page' => -1 ) ) ) {
            ?>

                <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

                <?php $image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?>

                <div class="col-lg-4 mt-4 mt-lg-0">
                    <div class="testimonial-style-03 border-radius bg-light p-4 mb-4">
                        <div class="testimonial-item p-2">
                            <div class="testimonial-content">
                                <i class="fas fa-quote-left quotes text-dark"></i>
                                <p class="testimonial-des"><?php echo get_the_content(); ?></p>
                            </div>
                            <div class="testimonial-author">
                                <div class="testimonial-name">
                                    <h6 class="mb-1">-<?php the_title(); ?></h6>                                
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <?php endwhile; endif; wp_reset_query(); ?>

            <?php } ?>
                
        </div>
    </div>
</section>
<!--=================================
Testimonial and Brands -->

<?php
get_footer();
?>