Created
May 29, 2014 22:20
-
-
Save sharpmachine/2b68bce8cc5f9ae618fb to your computer and use it in GitHub Desktop.
AFC rows and subfields
This file contains hidden or 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(get_field('team_members')): ?> | |
| <?php while(has_sub_field('team_members')): ?> | |
| <div class="row team-member"> | |
| <div class="col-sm-4"> | |
| <img src="<?php the_sub_field('team_member_headshot'); ?>" class="img-responsive img-circle" alt="<?php the_sub_field('team_member_name'); ?>"> | |
| </div> | |
| <div class="col-sm-8"> | |
| <h3 class="team-member-name"><?php the_sub_field('team_member_name'); ?></h3> | |
| <div class="team-member-position"><?php the_sub_field('team_member_title'); ?></div> | |
| </div> | |
| </div> | |
| <hr> | |
| <?php endwhile; ?> | |
| <?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment