Created
January 9, 2017 07:05
-
-
Save antiden/cf51a0528783d2f231708d7760902523 to your computer and use it in GitHub Desktop.
WP ACF Flexible Content
This file contains 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('flexible_content_field_name') ): ?> | |
<?php while ( have_rows('flexible_content_field_name') ) : the_row(); ?> | |
<?php if( get_row_layout() == 'paragraph' ): ?> | |
<?php the_sub_field('text'); ?> | |
<?php elseif( get_row_layout() == 'download' ): ?> | |
<?php endif; ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment