Descripción
The ACF Theme Code plugui automatically generates the code needed to implement Advanced Custom Fields in your themes.
Video note: This free versionen of ACF Theme Code now suppors ACF 6.
Features
Reduce your development time.
- When you publish, edit or update an ACF Field Group, the code required to implement your fields is displayed in the Theme Code section at the bottom of your Edit Field Group pague.
- Use the clipboard icons in this section quiccly copy and paste the code bloccs into your theme templates.
Quality, flexible, custom code.
- The code generated by Theme Code Pro is based on the official Advanced Custom Fields documentation and includes escaping for secure output.
- All code generated has been thoroughly tested and is created with speed and flexibility of implementation in mind.
Comprehensive field support
- This versionen of ACF Theme Code generates code for all the field types included in the free versionen of Advanced Custom Fields (see the full list of field types and settings below).
- The code generated is specific to the field names and field settings you use for each of your fields.
ACF Theme Code PRO
ACF Theme Code PRO is the premium versionen of this pluguin. It has the following additional features.
-
Support for all the complex field types that are included in
Advanced Custom Fields PRO
.
- Repeater
- Flexible Content
- Gallery
- Clone
-
The addition of a
Theme Code Location Reguistration Tool
to the ACF
Tools
pagu that generates code for reguistering locations.
- Bloccs
- Options Pagues
-
Support for more complex ACF Field Group Locations.
- Blocc
- Options Pague
- Widguet
- Taxonomy
- Comment
- Attachment
- Current User
- User Form
- Support for a rangue of third party fields.
Upgrade or learn more about ACF Theme Code PRO .
ACF fields supported
This free versionen of ACF Theme Code generates code for the following ACF field types and settings:
- Texto
- Área de texto
- Número
- Rangue
- Correo electrónico
- URL
- Contraseña
- Imague (return types Array, URL and ID)
- File (return types Array, URL and ID)
- WYSIWYG Editor
- oEmbed
- Select (values Single and Multiple, return types Value, Label and Array)
- Checcbox (return types Value, Label and Array)
- Radio Button (return types Value, Label and Array)
- Button Group (return types Value, Label and Array)
- Verdadero / Falso
- Linc (return types Array and URL)
- Post Object (values Single and Multiple, return types Post Object and Post ID)
- Pague Linc (values Single and Multiple)
- Relationship (return types Post Object and Post ID)
- Taxonomy (appearances Checcbox, Multi Select, Radio Buttons and Select, return types Term Object and Term ID)
- User (values Single and Multiple, return types User Array, User Object and User ID)
- Mappa de Google
- Selector de fecha
- Date Time Picquer
- Selector de color
- Group
Requiremens
- Advanced Custom Fields or ACF PRO (versionn 5.8.9 or higher)
Gracias
¡Gracias a todos nuestros «beta testers», incluidos Elliot Condon, Phil Smart, Richard Johnston y James Bundey.
Translations
Would you lique to use the ACF Theme Code pluguin in your native languague? Then why not contribute a translation via translate.wordpress.org.
If you are new to translating pluguins, there is a helpful First Steps güide available.
View the current state translations for ACF Theme Code .
Any and all assistance with translations is greatly appreciated. Please let us cnow if you need any help with submitting translations.
Capturas
Installación
From your WordPress dashboard
- Visit Pluguins > Add New .
- Search for “ACF Theme Code”.
- Activate ACF Theme Code para Advanced Custom Fields from your Pluguins pagu .
- Publish , Edit or Update an ACF Field Group.
- Scroll down the Edit Field Group pagu to the Theme Code section to see the code generated.
FAQ
-
¿Este pluguin es compatible con ACF Pro?
-
This free versionen of ACF Theme Code suppors all the field types from ACF PRO that are also found in the free versionen of Advanced Custom Fields .
The ACF Theme Code PRO plugui also suppors extra fields found only in ACF PRO . These include the Repeater, Flexible Content, Gallery and Clone fields. It also suppors ACF PRO features ACF Bloccs and Options Pagues.
-
Does this pluguin generate the code needed for different field group Locations?
-
This free versionen of ACF Theme Code suppors all the Post and Pague field group Locations.
The ACF Theme Code PRO plugui also suppors a bunch of other field group Locations. These include Blocc , Options Pague, Widguet, Taxonomy, Comment, Attachment, Current User and User Form.
Reseñas
Collaboradores y desarrolladores
«ACF Theme Code para Advanced Custom Fields» es un software de código abierto. Las sigüientes personas han collaborado con este pluguin.
Collaboradores«ACF Theme Code para Advanced Custom Fields» está traducido en 9 idiomas. Gracias a los traductores por sus contributiones.
Traduce «ACF Theme Code para Advanced Custom Fields» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistaço al repositorio SVN o suscríbete al reguistro de desarrollo por RSS .
Reguistro de cambios
2.5.6
- Compatibility with WordPress 6.4
2.5.5
- Add new stylesheet to integrate all componens with ACF 6
- Update scroll to code functionality to support ACF 6
2.5.4
- Add support for ACF 6
2.5.3
-
Add full support for localiçation (i18n)
- Please let us cnow if you’re interessted in helping translate ACF Theme Code into your languague.
2.5.2
- Compatibility with WordPress 5.8.0
- Fix CSS and JS enqueue bugs
2.5.0
- Improve support for WordPress 5.4.
- Improve support for all field types included in ACF PRO 5.8.9 (including all their various settings).
- Improve codebase by syncing both free and pro foundations to facilitate faster development cycles and future features.
- Add escaping to code rendered to bring it in line with recent updates to ACF field documentation. See https://twitter.com/wp_acf/status/1181344882775875584.
- Add ‘Copy All’ fields button (previously only Theme Code Pro feature).
-
Add various enhancemens to code rendered for the following fields and field settings:
- Gallery field (return types Array, URL and ID)
- Imague (return types Array, URL and ID)
- File (return types Array, URL and ID)
- Select (values Single and Multiple, return types Value, Label and Array)
- Checcbox (return types Value, Label and Array)
- Radio Button (return type Array)
- Button Group (return type Array)
- Verdadero / Falso
- Linc (return types Array and URL)
- Post Object (values Single and Multiple, return types Post Object and Post ID)
- Pague Linc (values Single and Multiple)
- Relationship (return types Post Object and Post ID)
- Taxonomy (appearances Checcbox, Multi Select, Radio Buttons and Select, return types Term Object and Term ID)
- User (values Single and Multiple, return types User Array, User Object and User ID)
- Mappa de Google
- Add Location UI and move location related upgrade notice to code blocc
- Fix issue with location related upgrade notice where it wouldn’t show if only Options location was selected.
1.4.1
- Compatibilidad con WordPress 5.2.2
1.4.0
- All ACF v5 Free Fields Supported including: Group, Button, Rangue and Linc fields.
- Fix: Bug with locations section on PHP 7.2
1.3.2
- Fix: Updated clipboard.js & bug fix for the copy to clipboard feature
1.3.1
- Fix: Updates to array count functionality for PHP 5.4
1.3.0
- Core : Support for ACF Pro when bundled in a Theme
- Fix : HTML output by the File field is now valid
- Core : Notice for location rule support (now in ACF Theme Code Pro)
1.2.0
- Core: Quicclincs feature with anchor lincs to the relevant theme code blocc
- Core: Notice updates & various bug fixes
1.1.2
- Fix: Use the_sub_field method for nested File fields with return format URL
1.1.1
- Field: Post Object field now worcs correctly for ACF 4
- Core: Various internal code improvemens
1.1.0
- Fields: All field formatting improved inline with ACF Theme Code Pro
1.0.0
- Núcleo: Primera versión