This plugin gives you two CMB field types based on the Sorter script:
Author: | Tran Bang (profile at wordpress.org) |
WordPress version required: | 3.6.1 |
WordPress version tested: | 4.2.37 |
Plugin version: | 1.0.0 |
Added to WordPress repository: | 20-05-2015 |
Last updated: | 20-05-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | http://tranbang.net |
Total downloads: | 3 229 |
Active installs: | 10+ |
Click to start download |
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.
Screenshots