
內容簡介
ACF Field For CF7 外掛讓使用者能夠輕鬆地在網站上放置 Contact Form 7 表單,無需手動複製短碼。透過 Advanced Custom Fields,使用者只需從下拉選單中選擇表單,便可快速顯示於頁面上,簡化了表單管理的流程。
【主要功能】
• 一鍵選擇表單 — 編輯器中顯示所有 Contact Form 7 表單的下拉選單
• 無需短碼 — 表單自動在前端顯示,無需複製或粘貼
• 客戶友好 — 內容編輯者可獨立管理表單,減少開發者支援需求
• 超輕量 — 僅約 10 KB,對網站速度無影響
• 允許空值選項 — 編輯者可選擇不填寫表單欄位
• 超過 10,000 個網站信賴 — 自 2012 年以來持續安裝和維護
外掛標籤
開發者團隊
原文外掛簡介
Ever struggled with placing Contact Form 7 forms exactly where you want on your web site?
Normally, to display a Contact Form 7 form, you need to copy a shortcode like
錯誤: 找不到符合條件的聯絡表單。
and paste it in the right place. One wrong character and the form breaks. If you have 10 pages with different forms, managing all those shortcodes becomes a headache.ACF Field for CF7 solves this.
It adds a simple dropdown field with help of Advanced Custom Fields to your page editor that lists all your Contact Form 7 forms. Just pick the form you want and it’s done. It shows up on your page. No shortcodes to copy. No code to write. No mistakes.
Before vs After This Plugin
Without this plugin:
1. Create a form in Contact Form 7.
2. Copy the shortcode.
3. Paste it into your page, widget, or template.
4. Hope you didn’t mistype anything.
5. Repeat for every page that needs a different form.
With this plugin:
1. Create a form in Contact Form 7.
2. Add a Advanced Custom Field for Contact Form 7 to your desired location.
3. Pick Contact Form from a dropdown field.
4. Done.
Key Features
• One-Click Form Selection — A clean dropdown in your editor lists every Contact Form 7 form. Pick one, save, done.
• No Shortcodes Required — Forms render automatically on the front end. No copying, no pasting, no broken markup.
• Client-Friendly — Content editors manage forms without developer help. Fewer support requests for you.
• Ultra Lightweight — Only ~10 KB. Zero impact on site speed or performance.
• Allow Null Option — Make the form field optional so editors can leave it empty when no form is needed.
• Trusted by 10,000+ Sites — Actively installed and maintained since 2012.
For Developers: Quick Start
Register an ACF field with type contact_form_7, then output it in your template:
// Display the form directly
echo get_field( 'your_form_field' );
Need the CF7 form object instead of rendered HTML? Use this filter:
add_filter( 'acf_cf7_object', '__return_true' );
Now get_field() returns the WPCF7_ContactForm object for full control over the output.
Real-World Examples
• Landing Pages — Each landing page has its own lead capture form. Editors pick which form appears — no developer needed.
• Service Pages — A web agency builds one template for all service pages. Each page shows a different inquiry form selected by the client.
• Site-Wide Default Form — Use with ACF option pages to set one global “Contact Us” form across headers, footers, or sidebars.
• Multi-Language Sites — Different forms for different languages, each selected per page through the editor.
ACF Field For CF7 Pro
Need more? The Pro version adds:
• Gutenberg Block Support — Use CF7 forms inside the WordPress block editor.
• Widget & Theme Customizer — Place forms in widget areas and customizer panels.
• Allow Null — Make the form field optional so editors can leave it empty when no form is needed.
• Disable Forms — Mark one or more forms as disabled to prevent them from being selected.
Download the ACF Field For CF7 Pro
Compatibility
This plugin works with:
• ACF 5
• ACF 6
• Contact Form 7 5.9 and above
• WordPress 6.0 and above
• PHP 8.1 and above
