Last active
August 29, 2015 14:09
-
-
Save nickberens360/965b99b304509f7ddea7 to your computer and use it in GitHub Desktop.
Wordpress: ACF repeater code
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( have_rows('content_blocks') ): ?> | |
<?php while ( have_rows('content_blocks') ) : the_row(); ?> | |
<h2><?php the_sub_field('content_block_title'); ?></h2> | |
<p><?php the_sub_field('content_block_content'); ?></p> | |
<?php endwhile; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment