Plus Features For Advanced Custom Fields Wordpress Plugin - Rating, Reviews, Demo & Download

Plus Features For Advanced Custom Fields Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Plus Features for Advanced Custom Fields adds a Dual Range Slider field type to the advanced custom field plugin and some basic shortcodes for basic fields in the current post. The Dual Range Slider field type allows you to choose minimum and maximum values.

At the moment, the shortcode works on the current post and allows you to Display:

  • Email link from ACF email field type.
  • URL link from ACF URL field type.
  • Number with decimals and thousand separators from ACF number field type.
  • Text from text, textarea, and range field types.

Usage

Code

Get Dual range slider value code:

`PHP

if ( function_exists( ‘get_field’ ) ) {
$min_max_array = get_field( ‘dual_range_slider’ );
if ( is_array( $min_max_array ) && array_key_exists( ‘min’, $min_max_array ) && array_key_exists( ‘max’, $min_max_array ) ) {
echo ‘Min value is: ‘ . wp_kses( $min_max_array[‘min’] , array()) . ‘
‘;
echo ‘Max value is: ‘ . wp_kses( $min_max_array[‘max’] , array());
}
}
`

Update Dual range slider PHP code:

`PHP

if(function_exists( ‘update_field’ ) ){
$value=array(
‘min’=>20,
‘max’=> 35,
);
$is_updated=update_field(‘dual_range_slider_field_name’, $value);
var_dump($is_updated);
}

= Shortcodes Examples=

[acfp field=”text_field_name” field_type=”text”]

[acfp field=”text_area_field_name” field_type=”textarea”]

[acfp field=”range_field_name” field_type=”range” ]

[acfp field=”number_field_name” field_type=”number”]

[acfp field=”number_field_name” format = “separators_decimals” decimal_separator=”,” thousands_separator=”.” decimals=”4″ field_type=”number”]

[acfp field=”email_field_name” format=”link” link_text=”my email” field_type=”email”]

[acfp field=”email_field_name” link_text=”my email” field_type=”email”]

[acfp field=”url_field_name” format=”link” link_text=”my link” field_type=”url”]

[acfp field=”url_field_name” link_text=”my link” field_type=”url”]

[acfp field=”dual_range_slider_field_name” field_type=”acfp_dual_range_slider” format=”min”]

[acfp field=”dual_range_slider_field_name” field_type=”acfp_dual_range_slider” format=”max”]

[acfp field=”dual_range_slider_field_name” field_type=”acfp_dual_range_slider”]

Screenshots

  1. Dual Range Slider in Admin dashboard post edit.

    Dual Range Slider in Admin dashboard post edit.

  2. Dual Range slider field settings.

    Dual Range slider field settings.

  3. Settings continuation.

    Settings continuation.


Reviews & Comments