BACK TO DIRECTORY

CMB Field Type: Sorter

by Tran Bang

5.0
(2 ratings)

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

admin panel

admin panel

drag drop

drag drop

output value

output value

Plugin Details

Active Installs
10
Total Downloads
4,234
Version
1.0.0
Requires WP
3.6.1
Requires PHP
Tested Up To
4.2.39
Added
2015-05-20
Last Updated
2015-05-20 1:58am GMT

Ratings

5
2
4
0
3
0
2
0
1
0