Skip to content

haet/acf-field-range

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACF Range Field

Adds a 'Range' field type for the Advanced Custom Fields WordPress plugin.


Works with ACF 4.2.0 and ACF 5

Overview

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/

Compatibility

This add-on will work with:

  • Advanced Custom Fields version 4 and up

Installation

This add-on can be treated as both a WP plugin and a theme include.

Install as Plugin

  1. Copy the 'acf-range' folder into your plugins folder
  2. Activate the plugin via the Plugins admin page

Include within theme

  1. Copy the 'acf-range' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory
  2. 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');
}

Frequently Asked Questions

What does it return?

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) 
	}

About

Advanced Custom Fields: Range Field

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.4%
  • JavaScript 13.5%
  • CSS 0.1%