{"id":26879,"date":"2013-12-23T20:27:30","date_gmt":"2013-12-23T20:27:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-range-field\/"},"modified":"2014-08-30T22:41:39","modified_gmt":"2014-08-30T22:41:39","slug":"acf-range-field","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/acf-range-field\/","author":1536433,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.4","stable_tag":"1.1.4","tested":"3.9.40","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields: Range","header_author":"viriava","header_description":"","assets_banners_color":"","last_updated":"2014-08-30 22:41:39","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.crazyxhtml.com","header_plugin_uri":"https:\/\/github.com\/viriava\/acf-field-range","header_author_uri":"http:\/\/www.crazyxhtml.com","rating":5,"author_block_rating":0,"active_installs":80,"downloads":6267,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"866173","resolution":"1","location":"assets"}},"screenshots":{"1":"Default look"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2240,202,2280],"plugin_category":[59],"plugin_contributors":[84275],"plugin_business_model":[],"class_list":["post-26879","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-field","plugin_tags-jquery","plugin_tags-range","plugin_category-utilities-and-tools","plugin_contributors-viriava","plugin_committers-viriava"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/acf-range-field.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-range-field\/assets\/screenshot-1.png?rev=866173","caption":"Default look"}],"raw_content":"<!--section=description-->\n<p>This is an add-on for the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a> WordPress plugin, that allows you to add a jQuery Range Slider field type. http:\/\/jqueryui.com\/slider\/<\/p>\n\n<p>Read more here: https:\/\/github.com\/viriava\/acf-field-range<\/p>\n\n<!--section=installation-->\n<p>This add-on can be treated as both a WP plugin and a theme include.<\/p>\n\n<h4>Plugin<\/h4>\n\n<ol>\n<li>Copy the 'acf-range' folder into your plugins folder<\/li>\n<li>Activate the plugin via the Plugins admin page<\/li>\n<\/ol>\n\n<h4>Include<\/h4>\n\n<ol>\n<li>Copy the 'acf-range' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory<\/li>\n<li><p>Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-range.php file)<\/p>\n\n<p>add_action('acf\/register_fields', 'my_register_fields');<\/p>\n\n<p>function my_register_fields()\n{\n    include_once('acf-range\/acf-range.php');\n}<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What does it return?<\/dt>\n<dd><p>If the type is Default, it returns the number.<\/p>\n\n<p>If the type is Range, it returns an array of minimum and maximum numbers.<\/p>\n\n<pre><code>    array(2) { \n        [\"min\"]=&gt; float(0) \n        [\"max\"]=&gt; float(0) \n    }\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>If a new post\/page is created with a range field the default value is not returned since the user change the slider. I have changed the code so that the default value is returned if the user doesn't change the slider.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>ACF5 compatible<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>ZERO bug fixed<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Updated parseInt to parseFloat<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added descriptions for fields<\/li>\n<li>Added default values<\/li>\n<li>Updated prepend and append functionality<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"jQuery Range Slider field for Advanced Custom Fields","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26879"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/viriava"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26879"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26879"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26879"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26879"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26879"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}