[WordPress] 外掛分享: Global Custom Fields

WordPress 外掛 Global Custom Fields 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Global Custom Fields」是 2020-04-21 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2021-03-24,距離現在已有 1501 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.4 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tommasomeli |

外掛標籤

gcf | field | custom | advanced | global custom fields |

內容簡介

使用全域自訂欄位來客製化 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 欄位。

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

原文外掛簡介

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!

各版本下載點

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

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


1.0 | 1.1 | 1.2 |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon