?> <div class="col-sm-4"> <div class="box-guide"> <h3 class="title"><?php the_title(); ?> </h3> <div class="summary"><?php echo wp_trim_words($post->post_content, 40, '…'); ?> </div> <a href="<?php echo $url; ?> "<?php echo link_target($url); ?> class="btn btn-more white btn-sm">click here to learn more</a> </div> </div> <?php if ($i % 3 == 2 || $i == $total - 1) { ?> </div> </div><?php } ?> <?php $i++; } wp_reset_postdata();
if (have_rows('related_resources')) { ?> <div class="box-white"> <h3 class="box-title">Related Resources</h3> <div class="box-body"> <div class="widget-nav green"> <ul style="margin-left:0"> <?php while (have_rows('related_resources')) { the_row(); ?> <li><a href="<?php the_sub_field('link'); ?> "<?php echo link_target(get_sub_field('link')); ?> ><?php the_sub_field('label'); ?> </a></li> <?php } ?> </ul> </div> </div> </div> <?php } ?>
</div> <div class="post_content"> <?php echo $post->content_formatted; ?> <?php if ($post->has_pdf() or $post->has_link()) { ?> <p><a href="<?php echo $post->url; ?> "<?php echo link_target($post->url, array('pdf')); ?> >View More</p> <?php } ?> <div class="bottom_of_post"> <div class="post_navigation_container"> <?php $prev = $post->prev; ?> <?php if (isset($prev->id)) {