這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

 ... 

contact me if you have any questions, issues, or suggestions.
And leave a review to grow the project!

螢幕擷圖

  • GCF Settings
  • GCF Groups
  • GCF Fields
  • GCF Fields

安裝方式

  1. Upload the global-custom-fields folder to the directory /wp-content/plugins/.
  2. Activate the plugin using the ‘Plugins’ menu in WordPress.
  3. Set up the plugin from GCF Admin Page
  4. Use get_gcf() php function or [gcf] shortcode to add GCF anywhere! (see more in the ‘Description’ section)

使用者評論

2020 年 4 月 23 日
Unico nel suo genere, non ho trovato alternativa migliore per questo tipo di lavoro! Grazie mille
2020 年 4 月 23 日
Very useful to add my custom code without much hassle, wherever i want and without risky copypasting. Thanks a lot!
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Global Custom Fields〉的開發相關工作。

參與者

將〈Global Custom Fields〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3 (25th March,2021)

  • WP 5.7 compatibility

1.2 (14th December,2020)

  • remove warnings from fields editor
  • code editor fixed

1.1 (1th June,2020)

  • add Fields editor (with lines and code highlights)
  • add extra Tags / Attributes section in settings
  • fix PHP eval feature