WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

ACF Theme Code

ACF Theme Code will automatically generate the code needed to implement Advanced Custom Fields in your themes!

ACF Theme Code is an extension for the awesome Advanced Custom Fields plugin.

When you publish, edit or update an ACF Field Group, the code required to implement each field is displayed for you in the Theme Code section at the bottom of the page.

The code is based on the ACF documentation and it's automatically updated to match the fields you have created. Use the clipboard icon to easily copy these code blocks and paste them into your theme to get you started and save loads of time!

Features include:

  • Easily copy the code into your theme
  • Great for offline documentation
  • Based on the official ACF documentation
  • Field names and variables are automatically updated

Support for the following fields:

  • Text
  • Text Area
  • Number
  • Email
  • Password
  • WYSIWYG
  • File (Object, URL and ID return values)
  • Image (Object, URL and ID return values)
  • Select (single and multiple values)
  • Checkbox
  • Radio
  • True / False
  • User
  • Google Map
  • Date Picker
  • Colour Picker
  • Page Link (single and multiple values)
  • Post Object (single and multiple values)
  • Relationship (Object and ID return values)
  • Taxonomy (Checkbox, Multi Select, Radio Buttons and Select field types)

Upgrade to ACF Theme Code Pro
ACF Theme Code Pro generates code for all ACF Pro field types including the Clone, Repeater, Gallery and Flexible Content field.
ACF Theme Code Pro generates code for a range of popular 3rd party fields including the Font Awesome field and Image Crop Field.
Find out more about ACF Theme Code Pro

Requires

  • ACF version 4.4.7 or higher
  • ACF Pro version 5.4 or higher

Thankyou

Thanks to all of our beta testers including Elliot Condon, Phil Smart, Richard Johnston & James Bundey!

Requires: 4.5.3 or higher
Compatible up to: 4.6.3
Last Updated: 4 months ago
Active Installs: 1,000+

Ratings

5 out of 5 stars

Support

1 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1