ACF Field For CF7
Ever struggled with placing Contact Form 7 forms exactly where you want on your web site? Normally, to display a Contact Form 7 form, you need to copy a shortcode like [contact-form-7 id="123"] and paste it in the right place. One wrong character and the form breaks. If you have 10 pages with different forms, managing all those shortcodes becomes a headache. ACF Field for CF7 solves this. It adds a simple dropdown field with help of Advanced Custom Fields to your page editor that lists all your Contact Form 7 forms. Just pick the form you want and it’s done. It shows up on your page. No shortcodes to copy. No code to write. No mistakes. Before vs After This Plugin Without this plugin: 1. Create a form in Contact Form 7. 2. Copy the shortcode. 3. Paste it into your page, widget, or template. 4. Hope you didn’t mistype anything. 5. Repeat for every page that needs a different form. With this plugin: 1. Create a form in Contact Form 7. 2. Add a Advanced Custom Field for Contact Form 7 to your desired location. 3. Pick Contact Form from a dropdown field. 4. Done. Key Features • One-Click Form Selection — A clean dropdown in your editor lists every Contact Form 7 form. Pick one, save, done. • No Shortcodes Required — Forms render automatically on the front end. No copying, no pasting, no broken markup. • Client-Friendly — Content editors manage forms without developer help. Fewer support requests for you. • Ultra Lightweight — Only ~10 KB. Zero impact on site speed or performance. • Allow Null Option — Make the form field optional so editors can leave it empty when no form is needed. • Trusted by 10,000+ Sites — Actively installed and maintained since 2012. For Developers: Quick Start Register an ACF field with type contact_form_7, then output it in your template: // Display the form directly echo get_field( 'your_form_field' ); Need the CF7 form object instead of rendered HTML? Use this filter: add_filter( 'acf_cf7_object', '__return_true' ); Now get_field() returns the WPCF7_ContactForm object for full control over the output. Real-World Examples • Landing Pages — Each landing page has its own lead capture form. Editors pick which form appears — no developer needed. • Service Pages — A web agency builds one template for all service pages. Each page shows a different inquiry form selected by the client. • Site-Wide Default Form — Use with ACF option pages to set one global “Contact Us” form across headers, footers, or sidebars. • Multi-Language Sites — Different forms for different languages, each selected per page through the editor. ACF Field For CF7 Pro Need more? The Pro version adds: • Gutenberg Block Support — Use CF7 forms inside the WordPress block editor. • Widget & Theme Customizer — Place forms in widget areas and customizer panels. • Allow Null — Make the form field optional so editors can leave it empty when no form is needed. • Disable Forms — Mark one or more forms as disabled to prevent them from being selected. Download the ACF Field For CF7 Pro Compatibility This plugin works with: • ACF 5 • ACF 6 • Contact Form 7 5.9 and above • WordPress 6.0 and above • PHP 8.1 and above
ACF Theme Code for Advanced Custom Fields
The ACF Theme Code plugin automatically generates the code needed to implement Advanced Custom Fields in your themes. Video note: This free version of ACF Theme Code now supports 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 page. Use the clipboard icons in this section quickly copy and paste the code blocks 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 version of ACF Theme Code generates code for all the field types included in the free version 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 version of this plugin. 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 Registration Tool to the ACF Tools page that generates code for registering locations. Blocks Options Pages Support for more complex ACF Field Group Locations. Block Options Page Widget Taxonomy Comment Attachment Current User User Form Support for a range of third party fields. Upgrade or learn more about ACF Theme Code PRO. ACF fields supported This free version of ACF Theme Code generates code for the following ACF field types and settings: Text Text Area Number Range Email URL Password Image (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) Checkbox (return types Value, Label and Array) Radio Button (return types Value, Label and Array) Button Group (return types Value, Label and Array) True / False Link (return types Array and URL) Post Object (values Single and Multiple, return types Post Object and Post ID) Page Link (values Single and Multiple) Relationship (return types Post Object and Post ID) Taxonomy (appearances Checkbox, 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) Google Map Date Picker Date Time Picker Colour Picker Group Requirements Advanced Custom Fields or ACF PRO (version 5.8.9 or higher) Thank you Thanks to all of our beta testers. Including Elliot Condon, Phil Smart, Richard Johnston and James Bundey. Translations Would you like to use the ACF Theme Code plugin in your native language? Then why not contribute a translation via translate.wordpress.org. If you are new to translating plugins, there is a helpful First Steps guide available. View the current state translations for ACF Theme Code. Any and all assistance with translations is greatly appreciated. Please let us know if you need any help with submitting translations.