WordPress plugin

ACF Theme Code PRO

When you publish, edit, or update an ACF Field Group, ACF Theme Code PRO displays a Theme Code section at the bottom of its editing page. The generated implementation code reflects the field names and settings in that group. Copy code blocks with the clipboard icons and add them to theme templates.

ACF Theme Code PRO

Move configured ACF fields into theme templates

When you publish, edit, or update an ACF Field Group, ACF Theme Code PRO displays a Theme Code section at the bottom of its editing page. The generated implementation code reflects the field names and settings in that group. Copy code blocks with the clipboard icons and add them to theme templates.

The generated code is based on the official Advanced Custom Fields documentation and includes output escaping. The add-on also works with selected third-party fields.

ACF PRO fields and features

The PRO edition supports these complex ACF PRO field types:

  • Repeater
  • Flexible Content
  • Gallery
  • Clone

It also supports ACF Blocks and Options Pages, alongside standard ACF fields.

Field group location registration

For code that registers field group locations, use the Theme Code Location Registration Tool on the ACF Tools page. It generates code for location settings, including more complex ACF Field Group Locations. Supported location types are Block, Options Page, Widget, Taxonomy, Comment, Attachment, Current User, and User Form.

Use the generated code

  1. Create or edit an ACF Field Group.
  2. Configure the field names, settings, and locations needed for the project.
  3. Save or update the field group.
  4. Open the Theme Code section and review the generated implementation code.
  5. Copy the relevant code blocks with the clipboard controls and add them to theme templates.

This workflow produces code tailored to the configured fields, including standard fields and supported Repeater, Flexible Content, Gallery, Clone, Blocks, and Options Pages features.

Requirements and setup

Use ACF Theme Code PRO on a WordPress site with Advanced Custom Fields or ACF PRO version 5.8.9 or higher. Once the required ACF extension is available, install and activate ACF Theme Code PRO. Create or edit a field group to access its Theme Code section, or open the ACF Tools page to generate field group location code.

ACF Theme Code PRO is intended for developers building custom themes with Advanced Custom Fields and its more complex paid features.