[WordPress] 外掛分享: Codeideal Open Fields

首頁外掛目錄 › Codeideal Open Fields
WordPress 外掛 Codeideal Open Fields 的封面圖片
30+
安裝啟用
尚無評分
47 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v0.4.2 上架:2026-02-23

內容簡介

總結:Codeideal Open Fields是一個允許您對WordPress的文章、頁面、自訂文章類型、分類和使用者添加自訂欄位的外掛。管理介面使用React和TypeScript編寫,快速、響應式和直觀。所有功能均免費,沒有高級版或功能鎖。

1. 什麼是Codeideal Open Fields外掛的功能?
- 允許您在WordPress的不同內容中添加自訂字段,包括文章、頁面、自訂文章類型、分類和使用者。

2. 如何開始使用Open Fields?
- 使用get_field( 'my_field' )檢索任何字段值。
- 使用the_field( 'my_field' )直接輸出字段值。

3. 該外掛支持哪些模板示例?
- 簡單字段示例:使用<?php echo esc_html( get_field( 'subtitle' ) ); ?>
- 重複器示例:使用<?php while ( have_rows( 'team_members' ) ) : the_row(); ?>等。

4. Open Fields是否與ACF相容?
- 是的,Open Fields的模板API使用相同的功能名稱,如get_field() / the_field()等。

5. Open Fields所支持的字段類型有哪些?
- 基本:文本、文本區、數字、電子郵件、URL、密碼等。
- 選項:選擇框、核取框、單選、開關等。
- 日期和時間、媒體、內容、關聯和版面等。

6. 如何將字段分組定位?
- 可將字段組分配給不同的內容類型、頁面模板、分類、用戶角色等。

7. Open Fields的源代碼來自哪裡?
- 管理介面的JavaScript和CSS來自TypeScript/React源代碼,其他文件未經壓縮。

8. 如何獲取Open Fields的源代碼?
- 源程式碼存儲庫:github.com/novincode/openfields
- 管理介面源代碼:admin/src/
- 構建:pnpm install && pnpm build (Vite + TypeScript)

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Codeideal Open Fields」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Codeideal Open Fields lets you add custom fields to posts, pages, custom post types, taxonomies, and users. The admin interface is built with React and TypeScript — fast, responsive, and intuitive.
All features are free. No premium tier. No locked functionality.
Quick Start
get_field( 'my_field' ) — retrieve any field value.

the_field( 'my_field' ) — echo a field value directly.

Template Examples
Simple field:

Repeater loop:

User field (with prefix):

Full API reference and guides: openfields.codeideal.com/docs
ACF-Compatible API
If you know ACF, you already know Open Fields. The template API uses the same function names:

get_field() / the_field()
get_fields() / update_field() / delete_field()
have_rows() / the_row() / get_sub_field() / the_sub_field()
get_row() / get_rows() / reset_rows() / get_row_index()
get_field_object() / get_sub_field_object()

When ACF is also active, these wrappers are not loaded — no conflicts. Both plugins store data as standard WordPress meta, so they can coexist.
Every function also has a prefixed version (e.g. cofld_get_field()) that is always available regardless of other plugins.
Field Types

Basic: Text, Textarea, Number, Email, URL, Password
Choice: Select, Checkbox, Radio, Switch
Date & Time: Date, Time, DateTime, Color Picker
Media: Image, File, Gallery
Content: WYSIWYG Editor, Link
Relational: Post Object, Taxonomy, User
Layout: Repeater, Group

Location Rules
Assign field groups to:

Post types (including custom post types)
Page templates
Post status / format / category
Taxonomy terms
User roles

Source Code
The admin JS and CSS are compiled from TypeScript/React source. All other files are uncompressed.

Source repo: github.com/novincode/openfields
Admin source: admin/src/
Build: pnpm install && pnpm build (Vite + TypeScript)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon