Last active
October 3, 2017 17:49
-
-
Save marisqaporter/2e4ae2a73e23de360022434a697e7166 to your computer and use it in GitHub Desktop.
calling acf repeaters
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 | |
/*repeater speakers */ | |
if( have_rows('speakers') ):?> | |
<h2 class="entry-title center red">Speakers</h2><?php | |
?><div class="row stretch-xs center-xs"><?php | |
while ( have_rows('speakers') ) : the_row(); | |
?> | |
<!-- your loop code --> | |
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 | |
row stretch-xs"> | |
<div class="box staff-box"> | |
<?php if( get_sub_field('speaker_image') ): ?> | |
<img src="<?php the_sub_field('speaker_image'); ?>" /> | |
<?php endif; ?> | |
<h3 class="blue collapse"><?php the_sub_field('speaker_name'); ?> </h3> | |
<h4 class="blue collapse-top"><?php the_sub_field('speaker_organization'); ?> </h4> | |
<p><?php the_sub_field('speaker_bio'); ?></p> | |
</div><!-- end box div --> | |
</div><!-- end col div --> | |
<hr> | |
<?php | |
endwhile; | |
else : | |
// no rows found | |
endif; | |
?></div><!-- end row div --> | |
<!-- end repeater speaker loop --> | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment