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

首頁外掛目錄 › ACF Theme Code for Advanced Custom Fields
WordPress 外掛 ACF Theme Code for Advanced Custom Fields 的封面圖片
10,000+
安裝啟用
★★★★★
5/5 分(42 則評價)
840 天前
最後更新
問題解決
WordPress 4.9.0+ PHP 5.6+ v2.5.6 上架:2016-07-20

內容簡介

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)

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ACF Theme Code for Advanced Custom Fields」→ 直接安裝(推薦)

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon