jQuery Range Slider field for Advanced Custom Fields
This is an add-on for the Advanced Custom Fields WordPress plugin, that allows you to add a jQuery Range Slider field type. http://jqueryui.com/slider/
Read more here: https://github.com/viriava/acf-field-range
This add-on can be treated as both a WP plugin and a theme include.
Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-range.php file)
add_action(‘acf/register_fields’, ‘my_register_fields’);
function my_register_fields()
{
include_once(‘acf-range/acf-range.php’);
}
If the type is Default, it returns the number.
If the type is Range, it returns an array of minimum and maximum numbers.
array(2) { ["min"]=> float(0) ["max"]=> float(0) }