
內容簡介
Just Custom Fields(即自定義欄位)增加了在文章、頁面(與其他自定義文章類型)和分類中添加附加欄位的功能。安裝後,您將看到一個簡單的設置頁面,易於使用。
我們使用標準的 WordPress PostMeta API 和 TaxonomyMeta API 保存欄位數據,因此您可以在主題/插件中使用標準的 WordPress 函数來獲取數據。
重要提示:我們不建議您在現有站點上從 2.* 版本更新插件到 3.0+ 版本。
JCF v3.0+ 不兼容版本 2.*,因此一些欄位設置可能會丟失(結果是在文章編輯頁面上顯示錯誤值)。
插件支援以下欄位類型:
輸入文本框
選擇框
多重選擇框
勾選框(單選和多選)
文本區(您也可以使用 WordPress 編輯器)
日期選擇器
簡單媒體(上載文件和圖像)
表格
欄位集合(可重複的欄位組)
相關內容(設置與其他文章/頁面或自定義文章類型的關係)
您可以在我們的網站上閱讀完整的文檔:http://justcustomfields.com。
如果您想了解快速演示,可以觀看我們的演示視頻:
https://www.youtube.com/watch?v=7KJeH2d_v48
從 v2.0 開始,我們有不同的選項可以保存插件配置:
在有多站點的情況下,您可以全局設置欄位設置。因此,您可以在不將所有設置複製到每個新站點的情況下設置它們一次。
能夠將字段設置保存到文件系統中(在主題或 wp-content 文件夾內)。我們期望此選項將受到開發人員的青睞。這將更容易地在不同版本的站點之間移動您的字段設置(開發/生產)。
從 v2.2 開始:
現在,簡單媒體欄位僅限於單個文件(之前是多個文件)。它使用 WordPress 的新媒體上載框,並保存帖子縮略圖 ID(之前僅是文件 URL)。因此,現在您可以使用 get_the_post_thumbnail() 函数與附件一起使用。
現在所有字段都有“短代碼”和如何在模板中使用它們的提示,以供非專業開發人員使用。
我們提供匯出/匯入選項,方便在不同站點之間進行遷移。
如果您發現任何錯誤/問題,歡迎聯繫我!
問題跟踪器
插件代碼是開源的,並放置在 GitHub 公共存儲庫中。我將已知的錯誤和未來的功能列在那裡。您可以在那裡發布新的錯誤或功能請求。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Just Custom Fields adds ability to extend your Posts, Pages (and other custom post types) and Taxonomies with additional fields. After installation, you will see a simple settings page, which is self-explanatory to use.
We use the standard WordPress PostMeta API and TaxonomyMeta API to save fields data, so you can use standard WordPress functions in your themes/plugins to get data.
IMPORTANT We do not recommend update plugins on your existing sites from version 2.* to version 3.0+.
JCF v3.0+ is not compatible with versions 2.*, so some field settings can be lost (and as a result – wrong values on post edit pages).
Plugin supports such field types:
Input text
Select Box
Multiple Select Box
Checkbox (single and multiple)
Textarea (you can use WordPress editor too)
Datepicker
Simple Media (files and images upload)
Table
Fields Collection (repeatable fields groups)
Related Content (to set a relation to another Post/Page or Custom Post Type)
You can read full documentation on our site: http://justcustomfields.com.
For quick demo you can watch our presentation video:
Starting from v2.0 we have different options to save plugin configuration:
Ability to set Fields Settings global if you have MultiSite. So you can set them once, without copying all settings to every new site.
Ability to save Fields Settings to a file system (inside theme or wp-content folder). We expect this option will be popular among the developers. It will be much easier to move your fields’ settings between site versions (dev/production).
Starting from v2.2:
Simple Media field is now a single file only (before it was multiple). It uses new media upload box from WordPress and saves post thumbnail ID (before it was just a file url). So now you can use the get_the_post_thumbnail() function to work with attachments.
All fields now have “Shortcodes” and hints how to use them inside the templates for non-professional developers.
For easy migrations between different sites, we have Export/Import options.
FEEL FREE TO CONTACT ME IF YOU FIND ANY BUGS/ISSUES!
ISSUES TRACKER
Plugin code is open source and placed in the GitHub public repository. I listed known bugs and future features there. You can post new bugs or feature requests for me there.
https://github.com/aprokopenko/justcustomfields/issues
