Linux 软件免费装

Advanced Custom Fields: Range Field

开发者 viriava
更新时间 2014年8月31日 06:41
捐献地址: 去捐款
PHP版本: 3.0.1 及以上
WordPress版本: 3.9.2
版权: GPLv2 or later
版权网址: 版权信息

标签

jquery acf field range

下载

1.0 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4

详情介绍:

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. Plugin
  1. Copy the 'acf-range' folder into your plugins folder
  2. Activate the plugin via the Plugins admin page
Include
  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'); } `

屏幕截图:

  • Default look

常见问题:

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

更新日志:

1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.0