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-service.php
<?php
/*
Template Name: Service
*/
get_header();
?>

<section class="space-ptb">
    <div class="container">
        <div class="row">

            <?php
                if ( query_posts( array( 'post_type' => 'service', '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-sm-4">
                        <div class="feature-info feature-info-style-01 mt-4 mt-lg-5">
                            <div class="feature-info-icon">
                                <img src="<?php echo $image_url[0]; ?>" height="68">
                            </div>
                            <div class="feature-info-content">
                                <h5 class="mb-3 feature-info-title"><?php echo get_the_title(); ?></h5>
                                <p class="mb-0"><?php echo get_the_excerpt(); ?></p>
                                <a href="<?php the_permalink(); ?>" class="icon-btn"><i class="fas fa-long-arrow-alt-right"></i></a>
                            </div>
                        </div>
                    </div>

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

            <?php } ?>

        </div>
    </div>
</section>

<?php
get_footer();
?>