Created
July 10, 2017 18:54
-
-
Save nickberens360/d6c34860ad7af322a762809517b0785a to your computer and use it in GitHub Desktop.
ACF flexible content
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('home_sections') ): ?> | |
<?php while ( have_rows('home_sections') ) : the_row(); ?> | |
<?php if ( get_row_layout() == 'recent_posts' ) { ?> | |
<?php include 'components/blocks/cardRow-block.php' ?> | |
<?php } elseif (get_row_layout() == 'call_out_strip') { ?> | |
<?php include 'components/blocks/slogan-block.php' ?> | |
<?php } else { ?> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment