Created
June 27, 2019 09:22
-
-
Save kisildev/733f8645e7be204a94dd0ef2f652bfd1 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
if($flexible_content = get_field('flexible_content')){ | |
foreach($flexible_content as $key => $section){ | |
$section['module_key'] = $key; | |
show_template($section['acf_fc_layout'], $section, 'parts/flexible-layouts'); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment