FrontElf Fields Bridge for Contact Form 7
FrontElf Fields Bridge for Contact Form 7 provides an ACF and SCF integration for Contact Form 7. It adds ACF field groups directly to each Contact Form 7 form editor. The plugin adds the Contact Form 7 form post type to the ACF location rules. Field groups assigned to that post type are shown in a
FrontElf Fields Bridge for Contact Form 7 provides an ACF and SCF integration for Contact Form 7. It adds ACF field groups directly to each Contact Form 7 form editor.
The plugin adds the Contact Form 7 form post type to the ACF location rules. Field groups assigned to that post type are shown in a dedicated tab in the Contact Form 7 editor and saved together with the form. This allows developers to store editable metadata and settings for each form.
The plugin supports Advanced Custom Fields and Secure Custom Fields. Contact Form 7 and one of those field plugins must be installed and active.
Documentation
Assign fields to Contact Form 7
After activating the plugin, a new Contact Form (CF7) option appears in the ACF or SCF field group location rules under Post Type .
- 01Open the ACF or SCF field group editor.
- 02Add the fields that should belong to each Contact Form 7 form.
- 03In the location rules, select Post Type is equal to Contact Form (CF7) .
- 04Save the field group.
- 05Open a Contact Form 7 form and use the Fields for form tab.
If no matching field groups exist, the Fields for form tab provides a button to create one.
Retrieve field values in a theme or plugin
Each saved Contact Form 7 form has a numeric WordPress post ID. The plugin shows this ID above the fields in the Fields for form tab.
Use the form ID as the second argument of get_field() :
$value = get_field('field_name', 123);
Escape the returned value according to its output context:
echo esc_html(get_field('field_name', 123));