Skip to content

Instantly share code, notes, and snippets.

@fastlinemedia
Created March 27, 2018 00:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastlinemedia/bc4f2b0a998748ea3b4fe3971371a1ef to your computer and use it in GitHub Desktop.
Save fastlinemedia/bc4f2b0a998748ea3b4fe3971371a1ef to your computer and use it in GitHub Desktop.
ACF repeater and flexible content shortcodes for Beaver Themer
<!-- Repeater with a nested repeater. -->
[wpbb-acf-repeater name='my_repeater']
<p>[wpbb post:acf type='text' name='sub_field_text']</p>
[wpbb-acf-nested-repeater name='nested_repeater']
<p>[wpbb post:acf type='text' name='nested_sub_field_text']</p>
[/wpbb-acf-nested-repeater]
[/wpbb-acf-repeater]
<!-- Flexible content field with different layouts. -->
[wpbb-acf-flex name='my_flexible_content']
[wpbb-acf-layout name='layout_1']
<p>[wpbb post:acf type='text' name='layout_1_text']</p>
[/wpbb-acf-layout]
[wpbb-acf-layout name='layout_2']
<p>[wpbb post:acf type='text' name='layout_2_text']</p>
[/wpbb-acf-layout]
[/wpbb-acf-flex]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment