Skip to content

Instantly share code, notes, and snippets.

@daveloodts
Created August 30, 2016 13:59
Show Gist options
  • Save daveloodts/d4bef0205b5e19ae79bbd1c8010a6d3a to your computer and use it in GitHub Desktop.
Save daveloodts/d4bef0205b5e19ae79bbd1c8010a6d3a to your computer and use it in GitHub Desktop.
<?php if( have_rows('leden') ): ?>
<div class="bestuur col-md-6 col-sm-12 col-xs-12">
<?php while( have_rows('leden') ): the_row(); ?>
<div class="row lid">
<div class="col-lg-4 col-md-5 col-sm-3"><img class="proffot" src="<?php echo the_sub_field('foto'); ?>" /></div>
<div class="col-lg-8 col-md-7 col-sm-9">
<h4><?php echo the_sub_field('naam'); ?></h4>
<table>
<?php if( get_sub_field('functie') ): ?><tr><td class='str'>Functie</td><td><?php echo the_sub_field('functie'); ?></td></tr><?php endif; ?>
<?php if( get_sub_field('adres') ): ?><tr><td class='str'>Adres</td><td><?php echo the_sub_field('adres'); ?></td></tr><?php endif; ?>
<?php if( get_sub_field('e-mail') ): ?><tr><td class='str'>E-mail</td><td><?php echo the_sub_field('e-mail'); ?></td></tr><?php endif; ?>
<?php if( get_sub_field('telefoon') ): ?><tr><td class='str'>Telefoon</td><td><?php echo the_sub_field('telefoon'); ?></td></tr><?php endif; ?>
<?php if( get_sub_field('bedrijf') ): ?><tr><td class='str'>Bedrijf</td><td><?php echo the_sub_field('bedrijf'); ?></td></tr><?php endif; ?>
</table>
</div>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment