Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

CMB Field Type: Sorter

Descripción

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.

Capturas

  • admin panel
  • drag drop
  • output value

Instalación

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’;

Reseñas

Leer todas las 2 reseñas

Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

Traduce "CMB Field Type: Sorter" a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.