Download ACF Field For CF7 Pro WordPress Plugin Free
WordPress plugin
ACF Field For CF7 Pro
Contact Form 7 stores the forms, and an ACF field lists them for selection. Editors can choose a form without copying shortcode text. For template-based display, the theme template must output the saved ACF value where the form should appear.
Contact Form 7 stores the forms, and an ACF field lists them for selection. Editors can choose a form without copying shortcode text. For template-based display, the theme template must output the saved ACF value where the form should appear.
Form selection and placement
Pro supports using Contact Form 7 forms in the Gutenberg block editor, widget areas, and Theme Customizer panels. The field can also be left empty when no form is needed. Forms marked as disabled cannot be selected.
Page-specific selections let landing pages use various forms while sharing a template. An ACF option page can hold a shared selection for a header, footer, or sidebar. On multilingual sites, editors can select forms for individual language versions.
Setup and output
Advanced Custom Fields and Contact Form 7 must both be active. Create a Contact Form 7 form, then make an ACF field with the contact_form_7 type and assign it to the page, post, option page, or supported widget or Customizer location. Select a form and save the content. For template-based placement, use the ACF value where the form should appear.
A theme template can output the selected value with the standard ACF function get_field(). The acf_cf7_object filter can return the WPCF7_ContactForm object when template code needs more control over output.
Compatibility
The supplied compatibility information lists ACF 5 and ACF 6, Contact Form 7 5.9 and above, WordPress 6.0 and above, and PHP 8.1 and above.