Created
September 23, 2016 13:32
-
-
Save stompweb/1bc6fc69d3f467acbfad5af02916cba7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($post_fields['places_of_interest']): ?> | |
<h2>Places of Interest</h2 | |
<?php echo $post_fields['places_of_interest_introduction']; ?> | |
<?php | |
foreach($post_fields['places_of_interest'] as $post): | |
setup_postdata($post); | |
?> | |
<div class="col-md-6 no-gutter-left no-gutter-xs"> | |
<?php the_post_thumbnail('place-of-interest') ?> | |
<h3><?php the_title(); ?></h3> | |
<?php the_content(); ?> | |
</div> | |
<?php endforeach; | |
wp_reset_postdata(); | |
?> | |
<a href="places-of-interest-peru.php" class="btn btn-blue pull-right">View all Places of Interest</a> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment