[WordPress] 外掛分享: CMB Field Type: Sorter

前言介紹

  • 這款 WordPress 外掛「CMB Field Type: Sorter」是 2015-05-19 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2015-05-20,距離現在已有 3638 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.6.1 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

abit04c |

外掛標籤

layout | sorter | jQueryUI |

內容簡介

這個外掛提供了兩種基於 Sorter script 的 CMB 欄位類型:

使用方法

tb_sorter – 下拉選單,內含類似 Typeahead 的搜尋功能。範例:

$cmb->add_field(array(
'name' => '頁面配置',
'id' => $prefix . 'ingredients',
'desc' => '選擇頁面配置',
'type' => 'tb_sorter',
'options' => array(
'enabled' => array(
'highlights' => '亮點',
'slider' => '滑塊',
'staticpage' => '靜態頁面',
),
'disabled' => array(
'services' => '服務'
)
),
));

輸出結果

get_post_meta(get_the_ID(), '_yourprefix_about_ingredients', true);

重要提示:鍵值對中的 'placebo' => 'placebo' 已不再需要。

原文外掛簡介

This plugin gives you two CMB field types based on the Sorter script:
Usage
`tb_sorter` – Select box with with typeahead-style search. Example:

$cmb->add_field(array(
'name' => 'Page Layout',
'id' => $prefix . 'ingredients',
'desc' => 'Select Page Layout',
'type' => 'tb_sorter',
'options' => array(
'enabled' => array(
'highlights' => 'Highlights',
'slider' => 'Slider',
'staticpage' => 'Static Page',
),
'disabled' => array(
'services' => 'Services'
)
),
));

Out put

get_post_meta(get_the_ID(), '_yourprefix_about_ingredients', true);

IMPORTANT: The key pair of ‘placebo’ => ‘placebo’ IS NO LONGER REQUIRED.

各版本下載點

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

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


最新版本

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

  • LH Sortable Tables 》Table Sorter 可將您在文章、頁面或自訂文章類型內有 THEAD 和 TBODY 標籤的標準 HTML 表格轉換為可排序的表格,而不需要重新整理頁面。它具有許多實用功能,...。

文章
Filter
Mastodon