[WordPress] 外掛分享: ACF Theme Code for Advanced Custom Fields

WordPress 外掛 ACF Theme Code for Advanced Custom Fields 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「ACF Theme Code for Advanced Custom Fields」是 2016-07-20 上架。
  • 目前有 10000 個安裝啟用數。
  • 上一次更新是 2023-11-28,距離現在已有 523 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.9.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 42 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

philkurth | benpearson |

外掛標籤

acf | php | automation | advanced custom fields |

內容簡介

ACF Theme Code 外掛可以自動生成在主題中實現 Advanced Custom Fields 所需的程式碼。以下是該外掛的功能特色:

- 縮短網站開發時間。
- 當您發布、編輯或更新 ACF 欄位群組時,所需的程式碼將顯示在您的編輯欄位群組頁面底部的 Theme Code 段落中。您可以使用該段落中的複製和貼上圖示快速複製和貼上程式碼區塊到主題模板中。
- 生成確保安全輸出的品質彈性自訂程式碼,並參考官方 Advanced Custom Fields 的文件。
- 支援 Advanced Custom Fields 免費版本中所有欄位類型及設定。
- ACF Theme Code PRO 是該外掛的付費版本,除了免費版本的功能外,還支援 Advanced Custom Fields PRO 中的複雜欄位類型、主題位置註冊工具及更多欄位群組位置。

以下是免費版本支援的 ACF 欄位類型及設定:

- Text(文字)
- Text Area(文字區域)
- Number(數字)
- Range(範圍)
- Email(電子郵件)
- URL(網址)
- Password(密碼)
- Image(回傳類型為 Array、URL 和 ID)
- File(回傳類型為 Array、URL 和 ID)
- WYSIWYG Editor(所見即所得編輯器)
- oEmbed(oEmbed 資訊)
- Select(值類型為 Single 和 Multiple,回傳類型為 Value、Label 和 Array)
- Checkbox(回傳類型為 Value、Label 和 Array)
- Radio Button(回傳類型為 Value、Label 和 Array)
- Button Group(回傳類型為 Value、Label 和 Array)
- True / False(布林值)
- Link(回傳類型為 Array 和 URL)
- Post Object(值類型為 Single 和 Multiple,回傳類型為 Post Object 和 Post ID)
- Page Link(值為頁面 ID 或 URL)

原文外掛簡介

The ACF Theme Code plugin automatically generates the code needed to implement Advanced Custom Fields in your themes.

Video note: This free version of ACF Theme Code now supports ACF 6.

Features
Reduce your development time.

When you publish, edit or update an ACF Field Group, the code required to implement your fields is displayed in the Theme Code section at the bottom of your Edit Field Group page.
Use the clipboard icons in this section quickly copy and paste the code blocks into your theme templates.

Quality, flexible, custom code.

The code generated by Theme Code Pro is based on the official Advanced Custom Fields documentation and includes escaping for secure output.
All code generated has been thoroughly tested and is created with speed and flexibility of implementation in mind.

Comprehensive field support

This version of ACF Theme Code generates code for all the field types included in the free version of Advanced Custom Fields (see the full list of field types and settings below).
The code generated is specific to the field names and field settings you use for each of your fields.

ACF Theme Code PRO
ACF Theme Code PRO is the premium version of this plugin. It has the following additional features.

Support for all the complex field types that are included in Advanced Custom Fields PRO.

Repeater
Flexible Content
Gallery
Clone

The addition of a Theme Code Location Registration Tool to the ACF Tools page that generates code for registering locations.

Blocks
Options Pages

Support for more complex ACF Field Group Locations.

Block
Options Page
Widget
Taxonomy
Comment
Attachment
Current User
User Form

Support for a range of third party fields.

Upgrade or learn more about ACF Theme Code PRO.
ACF fields supported
This free version of ACF Theme Code generates code for the following ACF field types and settings:

Text
Text Area
Number
Range
Email
URL
Password
Image (return types Array, URL and ID)
File (return types Array, URL and ID)
WYSIWYG Editor
oEmbed
Select (values Single and Multiple, return types Value, Label and Array)
Checkbox (return types Value, Label and Array)
Radio Button (return types Value, Label and Array)
Button Group (return types Value, Label and Array)
True / False
Link (return types Array and URL)
Post Object (values Single and Multiple, return types Post Object and Post ID)
Page Link (values Single and Multiple)
Relationship (return types Post Object and Post ID)
Taxonomy (appearances Checkbox, Multi Select, Radio Buttons and Select, return types Term Object and Term ID)
User (values Single and Multiple, return types User Array, User Object and User ID)
Google Map
Date Picker
Date Time Picker
Colour Picker
Group

Requirements

Advanced Custom Fields or ACF PRO (version 5.8.9 or higher)

Thank you
Thanks to all of our beta testers. Including Elliot Condon, Phil Smart, Richard Johnston and James Bundey.
Translations
Would you like to use the ACF Theme Code plugin in your native language? Then why not contribute a translation via translate.wordpress.org.
If you are new to translating plugins, there is a helpful First Steps guide available.
View the current state translations for ACF Theme Code.
Any and all assistance with translations is greatly appreciated. Please let us know if you need any help with submitting translations.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「ACF Theme Code for Advanced Custom Fields」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager 》插入標頭和頁腳 + 完整的 WordPress 代碼片段外掛, WPCode (前稱为 WPBeginner 的 "插入標頭和頁腳")是使用率超过 100 万个网站的 WordPress 代码片段外掛中...。
  • Code Snippets 》Code Snippets 是在您的網站上運行程式碼片段的簡單,清潔和簡單的方法。它消除了將自定義片段添加到您的佈景主題的 functions.php 檔案的需求。, 現在提供 C...。
  • PHP Compatibility Checker 》WP Engine PHP Compatibility Checker 外掛可以讓任何 WordPress 網站在任何網頁主機上檢查 PHP 版本相容性。, 此外掛會在 WordPress 檔案系統中 lint 主題和...。
  • PHP Code Widget 》普通的文字小工具允許您插入任意文字和/或 HTML 代碼。這個外掛程式也允許這樣做,但還會解析文本小工具中的任何 PHP 代碼並執行它。, 這可以讓您更輕鬆地遷...。
  • SyntaxHighlighter Evolved 》現在支援 WordPress 5.0 中的新區塊編輯器!, SyntaxHighlighter Evolved 讓您可以輕鬆地在網站上張貼帶有語法加亮功能的程式碼,而不會失去格式或做任何手動...。
  • PHP Everywhere 》注意:此外掛更新至 3.0.0 版本是一項重大變更,將移除 [php_everywhere] 短代碼和小工具。請透過外掛設定頁面中的升級嚮導,將原本的代碼轉換為 Gutenberg ...。
  • Error Log Monitor 》此外掛新增了一個儀表板小工具,顯示 PHP 錯誤日誌的最新訊息,也可以發送電子郵件通知有新記錄的錯誤。, 功能, , 自動偵測錯誤日誌的位置。, 如果未啟用,會...。
  • WP-ServerInfo 》狀態標誌, , 開發, https://github.com/lesterchan/wp-serverinfo, 翻譯, https://translate.wordpress.org/projects/wp-plugins/wp-serverinfo, 貢獻者, , ...。
  • WP-Memory-Usage 》從1.2.7版開始新增「多重記憶體測量」功能,可多次檢查記憶體使用情況。, 在儀表板和管理頁尾顯示 PHP 版本、記憶體限制和目前的記憶體使用量,現在您可以輕...。
  • Version Info | Show WP, PHP, MySQL & Web Server Versions in Admin Dashboard 》這個外掛會在管理員頁面的頁尾顯示當前的 WordPress 版本號碼以及以下環境資訊:, , 當前的 WordPress 版本資訊,若有更新,會同時顯示當前版本與最新版本, P...。
  • WP OPcache 》清空OPcache, , 在管理列中添加一個按鈕以清空OPcache, 僅清空WordPress絕對路徑中的文件, 可以單個或批次失效文件, 支援記憶體和檔案緩存, 支援多站網路, , ...。
  • Custom PHP Settings 》這個外掛可以用來自訂你 WordPress 安裝的 PHP 設定。這個外掛會修改 .htaccess 檔案或 .user.ini 檔案,以便直接從設定頁面更改目前的 PHP 設定。由於需要修...。
  • CSS & JavaScript Toolbox 》感謝您查看我們的程式碼片段外掛。我相信它將完全符合您的需求。, 適用於以下情況:, , 前端修改(無需修改主題文件), 添加功能(無需修改functions.php), ...。
  • Code Block Pro – Beautiful Syntax Highlighting 》展示你美麗的程式碼,不僅僅是顯示它!這個版塊外掛提供編輯程式碼塊的功能,直接運行你的程式碼,使用與受歡迎的 VS Code 編輯器相同的渲染引擎。此外掛提供...。
  • Eval PHP 》這個外掛可以在文章和博客數據中添加原生的 PHP 代碼。對於已登錄的用戶,會顯示 PHP 錯誤信息,以便調試 PHP 代碼。每個代碼塊都會像 PHP 函數一樣運行。可...。

文章
Filter
Apply Filters
Mastodon