[WordPress] 外掛分享: Global Custom Fields

首頁外掛目錄 › Global Custom Fields
WordPress 外掛 Global Custom Fields 的封面圖片
200+
安裝啟用
★★★★★
5/5 分(5 則評價)
1820 天前
最後更新
問題解決
WordPress 3.4+ PHP 5.4+ v1.3 上架:2020-04-21

內容簡介

使用全域自訂欄位來客製化 WordPress!您可以使用 GCF 來創建 HTML + PHP 簡碼、全域文字欄位、儲存自訂網址並在需要的地方檢索等等功能。

在 GCF 管理頁面中新增全域欄位。在“設定”部分創建群組,在“欄位”部分創建相關欄位。然後從“GCF”部分個別編輯各欄位。

使用 PHP 檢索 GCF。可以使用函數get_gcf($group, $single = false, $eval = false)在主題/外掛中的任何地方檢索欄位群組/個別 GCF。

使用簡碼顯示單個 GCF。載入並使用以下簡碼顯示單個 GCF:[gcf group="group_name" field="field_name" eval=false]。

在保存之前,每個欄位都會經過驗證。如果需要,可以在“設定”部分添加非標準的 HTML 標籤和屬性。

備註:只有當您知道自己在做什麼時才使用 PHP 的“eval”。使用虛標籤[php] ... [/php]保存 PHP 欄位。

如有任何問題、問題或建議,請聯繫我。
也歡迎您留下評論支持這個項目的發展!

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3) 或搜尋安裝

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

原文外掛簡介

Customize WordPress with Global Custom Fields! You can use GCF for example to create HTML + PHP shortcodes, global text fields, to save custom urls and retrieve them wherever you want and much more.
Add global fields in GCF Admin Page Create groups in the ‘Settings’ section and related fields in the ‘Fields’ section. Then edit the fields individually from the ‘GCF’ section.
Recover GCF with php Fields groups / single gcf can be retrieved anywhere within your theme / plugin with the function get_gcf($group, $single = false, $eval = false)
Show single GCF with a shortcode Load and display your single gcf with a shortcode! [gcf group="group_name" field="field_name" eval=false]
Each field is validated before saving. Add non-standard HTML tags and attributes in the “Settings” section if you need.
N.B. Use php “eval” only if you know what you’re doing. Save php fields using pseudo tags [php] ... [/php]
contact me if you have any questions, issues, or suggestions.
And leave a review to grow the project!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon