Created
February 2, 2018 04:02
-
-
Save jbd91/8b7cf8eef931f1fbb72e139918572617 to your computer and use it in GitHub Desktop.
ACF Repeater with Counter
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('')): $i = 0; ?> | |
<?php while(has_sub_field('')): $i++; ?> | |
<div class="section-<?php echo $i; ?>"> | |
</div> | |
<?php endwhile; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment