跳到内容

FrontElf Fields Bridge for Contact Form 7

v1.0.0

frontelf · 2026年6月2日 上架

Add ACF and SCF field groups to the Contact Form 7 form editor.

正在使用
10 以下
评分
5.0 / 5
累计下载
342
最近更新
2026年6月3日
1 条评价需要 WordPress 6.7+已测试到 7.0.9PHP 7.4+

贡献者

截图

The Contact Form (CF7) option in ACF or SCF location rules.
The Contact Form (CF7) option in ACF or SCF location rules.
The custom fields tab in the form editor.
The custom fields tab in the form editor.
Example of retrieving fields by form ID.
Example of retrieving fields by form ID.
Example of displaying the result.
Example of displaying the result.

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.

  1. Open the ACF or SCF field group editor.
  2. Add the fields that should belong to each Contact Form 7 form.
  3. In the location rules, select Post Type is equal to Contact Form (CF7).
  4. Save the field group.
  5. Open 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));

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums