Forked from kieranstartup/skip-first-row-of-repeater-field.php
Created
April 2, 2019 20:01
-
-
Save dashdanilo/2c528eaa6399545051841163ac85f03c to your computer and use it in GitHub Desktop.
ACF skip first row of repeater field
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('slides')): $i = 0; while(has_sub_field('slides')): $i++; if ($i != 1): ?> | |
<!-- Do Stuff Here --> | |
<?php endif; endwhile; endif; ?> | |
<!-- http://support.advancedcustomfields.com/forums/topic/repeater-skip-first-row/ --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment