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.

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.

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

  1. Create or edit an ACF Field Group.
  2. Configure the field names, settings and locations required by the project.
  3. Save or update the field group.
  4. Open the Theme Code section to review the generated implementation code.
  5. 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.


WordPress Index Project Manager Pro for WordPress Teams and Client Work Property Hive Pro for WordPress Property Websites Protect Admin PRO: Selected Administrator Protection How Protect Uploads Pro manages WordPress media access Configure a Custom Login with Protect WP Admin Pro PublishPress Authors Pro PublishPress Blocks Pro for the WordPress Block Editor PublishPress Capabilities Pro: WordPress Roles and Access Set Pre-Publish Rules with PublishPress Checklists Pro PublishPress Future Pro for Scheduled WordPress Changes