{"id":36407,"date":"2015-05-20T01:48:42","date_gmt":"2015-05-20T01:48:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cmb-field-type-sorter\/"},"modified":"2015-05-20T01:58:28","modified_gmt":"2015-05-20T01:58:28","slug":"cmb-field-type-sorter","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/cmb-field-type-sorter\/","author":14002339,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"4.2.39","requires":"3.6.1","requires_php":"","requires_plugins":"","header_name":"CMB Field Type: Sorter","header_author":"Tran Bang","header_description":"","assets_banners_color":"","last_updated":"2015-05-20 01:58:28","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/tranbang.net","header_author_uri":"http:\/\/www.tranbang.net\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3815,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1539452","resolution":"4","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539452","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1539452","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539452","resolution":"1","location":"plugin"}},"screenshots":{"1":"admin panel","2":"drag drop","3":"output value"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[14684,4036,18375],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-36407","plugin","type-plugin","status-publish","hentry","plugin_tags-jqueryui","plugin_tags-layout","plugin_tags-sorter","plugin_committers-abit04c"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cmb-field-type-sorter.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/cmb-field-type-sorter\/trunk\/screenshot-1.png?rev=1539452","caption":"admin panel"},{"src":"https:\/\/ps.w.org\/cmb-field-type-sorter\/trunk\/screenshot-2.png?rev=1539452","caption":"drag drop"},{"src":"https:\/\/ps.w.org\/cmb-field-type-sorter\/trunk\/screenshot-3.png?rev=1539452","caption":"output value"},{"src":"https:\/\/ps.w.org\/cmb-field-type-sorter\/trunk\/screenshot-4.png?rev=1539452","caption":""}],"raw_content":"<!--section=description-->\n<p>This plugin gives you two CMB field types based on the Sorter script:<\/p>\n\n<h4>Usage<\/h4>\n\n<p>`tb_sorter` - Select box with with typeahead-style search. Example:<\/p>\n\n<pre>\n    $cmb-&gt;add_field(array(\n        'name'    =&gt; 'Page Layout',\n        'id'      =&gt; $prefix . 'ingredients',\n        'desc'    =&gt; 'Select Page Layout',\n        'type'    =&gt; 'tb_sorter',\n        'options' =&gt; array(\n            'enabled'  =&gt; array(\n                'highlights' =&gt; 'Highlights',\n                'slider'     =&gt; 'Slider',\n                'staticpage' =&gt; 'Static Page',              \n            ),\n            'disabled' =&gt; array(\n                'services'   =&gt; 'Services'\n            )        \n        ),\n    ));\n<\/pre>\n\n<h4>Out put<\/h4>\n\n<pre>\n    get_post_meta(get_the_ID(), '_yourprefix_about_ingredients', true);\n<\/pre>\n\n<p>IMPORTANT: The key pair of 'placebo' =&gt; 'placebo' IS NO LONGER REQUIRED.<\/p>\n\n<!--section=installation-->\n<p>You can install this field type as you would a WordPress plugin:<\/p>\n\n<ol>\n<li>Download the plugin<\/li>\n<li>Place the plugin folder in your \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<li>Alternatively, you can place the plugin folder in with your theme\/plugin. After you call CMB:<\/li>\n<\/ol>\n\n<p>Add another line to include the cmb-field-sorter.php file. Something like:\nrequire_once 'cmb-field-type-sorter\/cmb-field-sorter.php';<\/p>","raw_excerpt":"This plugin gives you two CMB field types based on the Sorter script:","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36407"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/abit04c"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36407"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36407"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36407"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36407"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36407"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}