Last active
October 5, 2018 17:39
-
-
Save tessak22/a518f802922efcda41cea37ec0f94dd6 to your computer and use it in GitHub Desktop.
ACF Page Builder - Create file and put in template root directory
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 | |
// loop over the ACF flexible fields for this page / post | |
while ( the_flexible_field('page_builder') ) { | |
// load the layout from the block folder | |
get_template_part( 'blocks/'. get_row_layout() ); | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment