Description
ACF Field for Contact Form 7 allows you to seamlessly integrate Contact Form 7 forms into your Advanced Custom Fields (ACF) setup. It adds a custom field type to ACF that lets you select CF7 forms from the admin panel and output them directly in your templates. This simplifies form management and eliminates the need to manually insert shortcodes. Ideal for developers who want a cleaner, more dynamic way to embed forms in custom layouts.
Key Features:
• Single or Multiple Forms: Choose one CF7 form in a single ACF field.
• Markup Returned Automatically: Selected form(s) output the CF7 shortcode markup directly—ready to display via the_field() or get_field().
• Lightweight & Fast: Adds minimal load (~10 KB) to your site; small memory and speed impact.
• ACF-compatible: Works seamlessly with ACF 3–5 and tested up to WordPress 6.8.
Use Cases:
• Developer-Centric Page Layouts: Define custom ACF fields in page builder templates or theme templates, letting editors easily select CF7 forms—no more shortcode errors.
• Content Editor Avoids Mistakes: Editors pick from a clean dropdown list instead of pasting form shortcodes, reducing the chance of broken forms or syntax errors.
• Modular Form Integration: Use in widget areas, theme customizer panels, or Gutenberg block templates (with Pro), letting site-wide layouts dynamically include forms.
Checkout the advanced features of ACF Field For CF 7 Pro:
• Fully compatible with Gutenberg blocks.
• Supports integration with Widgets and Theme Customizer.
Download the ACF Field For CF 7 Pro
Compatibility
This ACF field type is compatible with :
* ACF 3
* ACF 4
* ACF 5
Installation
- Copiez le
acf-field-for-contact-form-7
dossier dans votre dossierwp-content/plugins
. - Activez l’extension Advanced Custom Fields : Contact Form 7 Field via la page d’administration des extensions.
- Créez un nouveau champ via ACF et sélectionnez le type Contact Form 7.
FAQ
-
Comment utiliser
-
Cet exemple affiche comment obtenir la valeur du champ
field_name
de la publication actuelle.echo get_field( 'field_name' );
Cet exemple affiche comment obtenir le sujet du formulaire (Contact Form 7).
function get_acf_cf7_object() { return true; } add_filter( 'acf_cf7_object', 'get_acf_cf7_object' );
-
J’ai une idée pour améliorer cette extension.
-
Super ! J’aimerais avoir de vos nouvelles à support@krishaweb.com.
Avis
Contributeurs/contributrices & développeurs/développeuses
« ACF Field For CF7 » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
Contributeurs“ACF Field For CF7” a été traduit dans 7 locales. Remerciez l’équipe de traduction pour ses contributions.
Traduisez « ACF Field For CF7 » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Journal des modifications
1.7
- Compatibility and Security update.
1.6
- Improve plugin notice.
1.5
- Improve plugin notice.
1.4
- Added: ACF pro option page support.
1.3
- Fixed: ACF Group field issue.
1.2
- Tested upto 5.0
1.1
- Filter added to get form object.
1.0
- Initial Release.