[WordPress] 外掛分享: Post Meta Controls

首頁外掛目錄 › Post Meta Controls
WordPress 外掛 Post Meta Controls 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
1880 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.1+ v1.4.1 上架:2019-01-19

內容簡介

演示 – 文件 – GitHub

在 Gutenberg 編輯器中註冊、儲存、修改及取得元數據。
使用此外掛在文章、頁面或自訂文章類型的編輯器中,添加元數據控制項到側邊欄中。
以下是可用的控制項列表:

按鈕
勾選框、多選勾選框
顏色、透明顏色
自定義文字
日期範圍、單一日期
圖片、多張圖片
單選按鈕
數值範圍、包含浮點數的數值範圍
下拉選單
文字、文字區域

此外掛提供不同選項,可自定義側邊欄、標籤、面板及設定控制項。

使用方法

安裝此外掛後,您需要在自己的外掛程式或佈景主題中包含外掛過濾功能,以創建具有其設定的側邊欄。
在註冊過的任何文章類型中都可以使用剛建立的側邊欄。
使用側邊欄中的控制項來修改設定值。
使用外掛程式的輔助工具(請參閱 "Helpers to get the meta values" 章節)以取得前端的元數據。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Demo – Documentation – GitHub
Register, Save, Modify and Get meta data in the Gutenberg editor.
Use this plugin to add meta data controls inside a sidebar in the editor of posts, pages or custom post types.
This is the list of controls available:

Buttons
Checkbox, Checkbox Multiple
Color, Color with Alpha
Custom text
Date Range, Date Single
Image, Image Multiple
Radio
Range, Range with Float number
Select
Text, Textarea

The plugin comes with different options to customize the Sidebars, Tabs, Panels and Setting controls.
Usage
Once the plugin is installed, you will need to include the plugin filter inside your plugin or theme to create a sidebar with it’s settings.
The new sidebar/s can be accessed in any post type where it was registered.
Modify the setting values with the controls inside the sidebar.
Use the plugin helpers (see Helpers to get the meta values section) to get the meta data in the front end.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon