
內容目錄
前言介紹
- 這款 WordPress 外掛「AgilePress Content Block for ACF」是 2025-12-11 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-02-13,距離現在已有 12 天。
- 外掛最低要求 WordPress 6.1 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 尚未有人給過這款外掛評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
acf | block | gutenberg | custom fields | dynamic content |
內容簡介
總結:AgilePress Content Block for ACF 是在您的網站上顯示 Advanced Custom Fields (ACF) 數據最簡單的方式,無需編寫 PHP 代碼。該外掛橋接了 ACF 和區塊編輯器之間的差距,讓您可以直接在編輯器中使用自定義 HTML 模板呈現字段值、循環運行重複項目,以及顯示圖片庫。
問題與答案:
1. 提供了 AgilePress Content Block for ACF 的主要特點是什麼?
- 在網頁前端顯示 ACF 數據,使用 {field_name} 渲染任何自定義字段值。
- 無需編寫程式碼,停止編輯主題文件,可以在區塊內建立模板。
- 支持 ACF 重複器:使用簡單標籤輕鬆循環遍歷重複項目。
- 可以存取群組和嵌套字段,像 {group:subfield} 這樣存取複雜的數據結構。
- 具有動態 HTML,可以對 HTML 結構和 CSS 類進行完全控制。
2. AgilePress Content Block for ACF 支持哪些語法?
- 簡單字段:{field_name}(文字、數字、電子郵件等)。
- 群組字段:{group_name:sub_field_name}。
- 重複器和圖庫:{{repeater_name}} content {{/repeater_name}}。
3. 使用 AgilePress Content Block for ACF 需要符合什麼要求?
- 需要安裝並啟用 Advanced Custom Fields(免費或 PRO 版本)。
原文外掛簡介
AgilePress Content Block for ACF is a versatile tool developed by AgilePress that allows you to create dynamic HTML content with Advanced Custom Fields integration. It supports four powerful syntaxes for different ACF field types:
Simple fields: Use {field_name} for text, number, and other simple fields
Group fields: Use {group_name:sub_field_name} to access fields within ACF groups
Repeaters & Galleries: Use {{repeater_name}} HTML content with {sub_field} tags {{/repeater_name}} to loop through repeater fields and image galleries
Conditionals: Use {{#if field}}...{{/if}} for conditional content display with support for = and != comparisons
This block is perfect for:
Displaying custom field data in formatted HTML
Creating dynamic templates with ACF fields
Building complex layouts that pull data from custom fields
Looping through repeater fields and image galleries
Accessing nested group field data
Showing/hiding content based on field values
Integrating ACF data seamlessly into your content
The block provides an intuitive sidebar editor where you can write HTML and insert ACF field tags. On the frontend, these tags are automatically replaced with the actual values from your Advanced Custom Fields.
Requirements:
Advanced Custom Fields (free or PRO version)
WordPress 6.1 or higher
PHP 7.0 or higher
Usage Examples
Example 1 – Simple field display:
Latitude: {latitude}
Longitude: {longitude}
Example 2 – Group field access:
Example 3 – Repeater field loop:
-
{{team_member}}
-
{name}
{position}
{bio}
{{/team_member}}
Example 4 – Gallery field loop:
{{/project_images}}
Example 5 – Conditional display:
Featured
{{/if}}
{title}
{{#if status = published}}
Published: {date}
{{#elseif status = draft}}
This is a draft
{{#else}}
Pending review
{{/if}}
{{#if author_name != Anonymous}}
By {author_name}
{{/if}}
Example 6 – Complex combination:
Featured Project
{{/if}}
{project_title}
{{/project_gallery}}
{{#if features}}
Project Features
-
{{features}}
- {feature_name}: {feature_value}
{{/features}}
{{/if}}
Additional Information
Security:
All field values are properly escaped using WordPress security functions (esc_html(), esc_url(), wp_kses_post()) to prevent XSS attacks and ensure safe output.
Performance:
The block uses WordPress native functions and ACF’s optimized field retrieval methods. Field values are processed server-side during render, ensuring optimal frontend performance.
Compatibility:
WordPress 6.1+ (tested up to 6.9)
PHP 7.0+ (tested up to 8.3)
ACF free version 5.0+
ACF PRO 5.0+
Classic and Block themes
Developer Notes:
The block follows WordPress coding standards and uses
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「AgilePress Content Block for ACF」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Advanced Custom Fields (ACF®) 》Advanced Custom Fields 可以讓 WordPress 網站成為一個完整的內容管理系統,提供您所有工具以更好管理您的數據。, 使用 Advanced Custom Fields 外掛,完全...。
Advanced Custom Fields: Font Awesome Field 》在 Advanced Custom Fields 中添加一個< a href="http://fontawesome.io/" rel="nofollow ugc">Font Awesome 圖標字段類型。, , 指定要使用哪些 Font Awesome...。
Advanced Custom Fields: Extended 》🚀 全方位增強套件,可改進WordPress和Advanced Custom Fields。此外掛旨在提供一個強大的管理框架,涵蓋了眾多改進和優化。, 此外掛需要至少 ACF Pro 5.8。,...。
ACF Content Analysis for Yoast SEO 》此外掛確保 Yoast SEO 分析包括所有 ACF 內容,包括彈性內容和重複器。, Yoast SEO for WordPress 內容和 SEO 分析不會考慮一篇文章的Advanced Custom Fields...。
ACF Photo Gallery Field 》t; 'Status', , 'name' => 'status', , 'choices' => array(, 'public' => 'Public', , 'private' => ...。
Table Field Add-on for ACF and SCF 》表格欄位外掛程式增強了Advanced Custom Fields外掛程式的功能,讓表格編輯更易於使用。, 此外掛程式需要Advanced Custom Fields外掛程式或專業版!, 表格欄...。Really Simple CSV Importer 》替代 CSV 導入外掛程式。簡單而強大,最適合於技術狂熱者。, , 類別支援, 標籤支援, 自訂欄位支援, Smart Custom Fields 支援, Custom Field Suite 支援, Adv...。
ACF to REST API 》此 WordPress 外掛在WordPress REST API中提供了Advanced Custom Fields的端點, 詳細資訊請參閱GitHub:https://github.com/airesvsg/acf-to-rest-api/。
ACF Quick Edit Fields 》這個 WordPress 外掛為 Advanced Custom Fields Plugin(Pro 和 Free 5+)增加了快速編輯功能。, 特色, , 在清單檢視中顯示 ACF 欄位值, 支援的 ACF 欄位類型...。
Advanced Custom Fields: Gravity Forms Add-on 》提供進階自訂欄位 (Advanced Custom Field),讓 WordPress 編輯使用者或管理員可以在欄位群組配置中選擇 Gravity Form。, 可以在 外掛的 GitHub 存儲庫 中找...。
Advanced Custom Fields: Image Aspect Ratio Crop Field 》這是一個進階自訂欄位 (Advanced Custom Fields) 的外掛,會在使用者上傳圖片後強制執行特定的長寬比例或像素大小裁剪。使用長寬比例對於回應式圖片的使用情...。
ACF Theme Code for Advanced Custom Fields 》ACF Theme Code 外掛可以自動生成在主題中實現 Advanced Custom Fields 所需的程式碼。以下是該外掛的功能特色:, , - 縮短網站開發時間。, - 當您發布、編輯...。
ACF Options For Polylang 》您使用了高級自訂欄位來建立選項頁面,並且安裝了 Polylang 外掛以獲得令人驚嘆的多語言網站嗎?, 可惜的是,Polylang 並不處理 ACF 的選項頁面。這意味著您...。
ACF Field For CF7 》此外掛為「Advanced Custom Fields」WordPress 外掛添加一個「Contact Form 7」欄位類型。, 您可以將一個或多個聯絡表單存儲在「Advanced Custom Fields」欄...。
WPGraphQL for ACF 》- WPGraphQL for Advanced Custom Fields 是一個免費的開源 WordPress 外掛,將 ACF Fields 和 Field Groups 添加到 WPGraphQL Schema 中。, - 創建 ACF Fiel...。
