/** Template Part : Text Section 2 */ $text_template_2_title = get_field('text_template_2_title'); $text_template_2_image = get_field('text_template_2_image'); $text_template_2_content = get_field('text_template_2_content'); ?> <!-- TEXT TEMPLATE 2 ====================================================== --> <section id="text-section-2"> <div class="container"> <div class="text-center section-image"> <?php get_section_title_image($text_template_2_image); ?> <h2><?php echo $text_template_2_title; ?> </h2> </div> <div class="row"> <div class="col-sm-8 col-sm-offset-2"> <?php echo $text_template_2_content; ?> </div> </div>
<br/> <div class="resource-row clearfix"> <?php $loop = new WP_Query(array('post_type' => 'affiliate', 'orderby', 'post_id', 'order' => 'ASC')); ?> <?php while ($loop->have_posts()) { $loop->the_post(); ?> <div class="col-sm-4"> <?php get_section_title_image(get_field('affiliate_image')); ?> <h3><a href="<?php the_field('affiliate_url'); ?> "> <?php the_title(); ?> </a></h3> <p><?php the_content(); ?> </p>