WordPress plugin
ACF Theme Code PRO
The code you need determines where to find it: field implementation code appears in an ACF Field Group editor, while location registration code is generated from the ACF Tools page.
The code you need determines where to find it: field implementation code appears in an ACF Field Group editor, while location registration code is generated from the ACF Tools page.
Generate code for field groups
After you publish, edit or update an ACF Field Group, open the Theme Code section at the bottom of its editing page. The generated implementation reflects the field names and settings in that group. Use the clipboard icons to copy code blocks into theme templates instead of writing each field reference manually.
The code is based on the official Advanced Custom Fields documentation and includes output escaping. Product information describes it as tested and designed with speed and flexible implementation in mind.
Supported fields and functions
The PRO edition works with these complex ACF PRO field types:
- Repeater
- Flexible Content
- Gallery
- Clone
It also supports ACF Blocks, Options Pages and selected third-party fields. Generated implementation code is tailored to the fields configured in each group.
Register field group locations
For location code, open the ACF Tools page and use the Theme Code Location Registration Tool. It generates code for field group locations, including more complex location options.
Supported PRO location types include Block, Options Page, Widget, Taxonomy, Comment, Attachment, Current User and User Form.
Development process
- Create or edit an ACF Field Group.
- Configure the field names, settings and locations required by the project.
- Save or update the field group.
- Open the Theme Code section to review the generated implementation code.
- Use the clipboard controls to copy relevant code blocks into theme templates.
The generated code reflects the configured fields, including standard ACF fields and supported complex fields such as Repeater, Flexible Content, Gallery and Clone. It can be used alongside ACF Blocks and Options Pages in custom theme templates.
Requirements and installation
Use ACF Theme Code PRO on a WordPress website with Advanced Custom Fields or ACF PRO version 5.8.9 or higher. Once the required ACF add-on is available, install and activate ACF Theme Code PRO. Create or edit a field group to access its Theme Code section, or open ACF Tools to generate field group location code.
ACF Theme Code PRO is for developers who want generated, field-specific implementation code while working with Advanced Custom Fields and its complex paid capabilities.