ACF Field For CF7

描述

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

螢幕截圖

安裝

  1. Copy the acf-field-for-contact-form-7 folder into your wp-content/plugins folder.
  2. Activate the Advanced Custom Fields: Contact Form 7 Field plugin via the plugins admin page.
  3. Create a new field via ACF and select the Contact Form 7 type.

常見問題

How to use

This example shows how to get the value of field field_name from the current post.

echo get_field( 'field_name' );

This example shows how to get form (contact form 7) object.

function get_acf_cf7_object() {
    return true;
}
add_filter( 'acf_cf7_object', 'get_acf_cf7_object' );

I have an idea for a great way to improve this plugin

Great! I’d love to hear from you at support@krishaweb.com

評價

2022年2月11日 1 reply
Makes it easy to add a flexible content layout where your customer can easily add an ACF content block with a CF form in it. Is simple, it works and it is free.
2022年2月1日 1 reply
Got me up and running quickly with integrating a CF7 form, instead of requiring the user to paste in the shortcode. Great time saver, thanks!
2021年10月8日 1 reply
it’s working perfectly and easy to use. Good job team
2020年7月1日 1 reply
Thanks for create this plugin, really love it. Easy to use and user friendly option to change the contact form from admin side.
閱讀全部11個評價

貢獻者及開發者

“ACF Field For CF7” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

ACF Field For CF7 外掛目前已有 7 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 ACF Field For CF7 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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.