Title: CMB Field Type: Sorter
Author: Tran Bang
Published: <strong>May 20, 2015</strong>
Last modified: May 20, 2015

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/cmb-field-type-sorter.svg)

# CMB Field Type: Sorter

 By [Tran Bang](https://profiles.wordpress.org/abit04c/)

[Download](https://downloads.wordpress.org/plugin/cmb-field-type-sorter.zip)

 * [Details](https://en-ca.wordpress.org/plugins/cmb-field-type-sorter/#description)
 * [Reviews](https://en-ca.wordpress.org/plugins/cmb-field-type-sorter/#reviews)
 *  [Installation](https://en-ca.wordpress.org/plugins/cmb-field-type-sorter/#installation)
 * [Development](https://en-ca.wordpress.org/plugins/cmb-field-type-sorter/#developers)

 [Support](https://wordpress.org/support/plugin/cmb-field-type-sorter/)

## Description

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⌉[

admin panel

[⌊drag drop⌉⌊drag drop⌉[

drag drop

[⌊output value⌉⌊output value⌉[

output value

[[

## Installation

You can install this field type as you would a WordPress plugin:

 1. Download the plugin
 2. Place the plugin folder in your /wp-content/plugins/ directory
 3. Activate the plugin in the Plugin dashboard
 4. Alternatively, you can place the plugin folder in with your theme/plugin. After
    you call CMB:

Add another line to include the cmb-field-sorter.php file. Something like: require_once‘
cmb-field-type-sorter/cmb-field-sorter.php’;

## Reviews

![](https://secure.gravatar.com/avatar/331e1a5df4cf821ea59bea62299b20db0c402cc0d3f8c89e377fc2c7e1405094?
s=60&d=retro&r=g)

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-1372/)󠁿

 [egemenerd](https://profiles.wordpress.org/egemenerd/) June 18, 2017

Thanks for this useful plugin 🙂

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/)

## Contributors & Developers

“CMB Field Type: Sorter” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Tran Bang ](https://profiles.wordpress.org/abit04c/)

[Translate “CMB Field Type: Sorter” into your language.](https://translate.wordpress.org/projects/wp-plugins/cmb-field-type-sorter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cmb-field-type-sorter/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cmb-field-type-sorter/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cmb-field-type-sorter/)
by [RSS](https://plugins.trac.wordpress.org/log/cmb-field-type-sorter/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.0**
 *  Last updated: **11 years ago**
 *  Active installations: **10+**
 *  WordPress Version: ** 3.6.1 or higher **
 *  Tested up to: **4.2.39**
 *  Language
 * [English (US)](https://wordpress.org/plugins/cmb-field-type-sorter/)
 * Tags:
 * [jQueryUI](https://en-ca.wordpress.org/plugins/tags/jqueryui/)[layout](https://en-ca.wordpress.org/plugins/tags/layout/)
   [sorter](https://en-ca.wordpress.org/plugins/tags/sorter/)
 *  [Advanced View](https://en-ca.wordpress.org/plugins/cmb-field-type-sorter/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cmb-field-type-sorter/reviews/)

## Contributors

 *   [ Tran Bang ](https://profiles.wordpress.org/abit04c/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cmb-field-type-sorter/)