[WordPress] 外掛分享: Custom Fields Shortcodes

首頁外掛目錄 › Custom Fields Shortcodes
WordPress 外掛 Custom Fields Shortcodes 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
5194 天前
最後更新
問題解決
WordPress 3.0+ v0.9 上架:2011-12-27

內容簡介

Custom Fields Shortcodes 可讓您在 WordPress 可視化編輯器中插入使用 Advanced Custom Fields、Custom Field Template 和 More Fields 或自行創建的自訂欄位。您將會看到一個新的彈出式視窗在媒體按鈕旁邊。在那裡,您可以選擇要插入的自訂欄位以及插入位置。

您可以整齊地按照元箱(meta-boxes)的方式查看您所定義的自訂欄位。選擇要插入的欄位,便可取得其簡短代碼。您可以從可視化或 HTML 編輯模式插入自訂欄位。

當插入由其他外掛創建的自訂欄位時,它們將使用該外掛的 API 進行顯示。例如,如果使用 'Advanced Custom Fields',並插入了一個 'radio' 欄位,您將得到其當前值。如果插入了一個所看即所得(WYSIWYG)欄位,則會獲得完整的 HTML 內容。

這樣一來,便可以不必使用 PHP 來讀取自訂欄位,將它們插入到內容中。

將自訂欄位添加到 WordPress 模板中

Custom Fields Shortcodes 與Views 無縫集成。您可以創建動態模板,包括您所需的任何欄位。然後,從 WordPress GUI 中,將這些模板應用於不同的內容類型。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Custom Fields Shortcodes lets you insert custom fields that you created using Advanced Custom Fields, Custom Field Template and More Fields or manually, into the WordPress visual editor. You’ll get a new popup, next to the media buttons. There, you can select which custom fields to insert, anywhere in the content.
You will see the custom fields that you’ve defined, neatly arranged by meta-boxes. Choose the field to insert and you’ll get its shortcode. You can insert custom fields from either Visual or HTML editing modes.
When inserting custom fields that were created by other plugins, they display using the plugin’s API. For instance, if you use ‘Advanced Custom Fields’ and you insert a ‘radio’ field, you get the current value. If you insert a WYSIWYG field, you get the full HTML content.
This allows inserting custom fields to your content without having to read them using PHP.
Adding Custom Fields to WordPress Templates
Custom Fields Shortcodes integrates seamlessly with Views. You will be able to create dynamic templates that include any field you want. Then, apply these templates to different content types, right from within the WordPress GUI.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon