Changeset 2928293
- Timestamp:
- 06/20/2023 01:56:27 AM (3 years ago)
- Location:
- plus-features-for-advanced-custom-fields
- Files:
-
- 2 edited
-
tags/1.0.0/README.txt (modified) (7 diffs)
-
trunk/README.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plus-features-for-advanced-custom-fields/tags/1.0.0/README.txt
r2928290 r2928293 1 1 === Plus Features for Advanced Custom Fields === 2 2 Contributors: thewpcatalyst 3 Donate link: https://profiles.wordpress.org/thewpcatalyst/3 Donate link: <https://profiles.wordpress.org/thewpcatalyst/> 4 4 Tags: acfp, plus, acf, advanced custom fields, dual, range, slider, input, dual range slider 5 5 Requires at least: 5.0 … … 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html10 License URI: <http://www.gnu.org/licenses/gpl-2.0.html> 11 11 12 12 Adds Dual range slider to Advanced Custom Fields(ACF) plugin and supports some shortcodes for Email and URL links, Numbers with separators, and text. … … 25 25 == Installation == 26 26 27 Requires https://wordpress.org/plugins/advanced-custom-fields/to be installed.27 Requires <https://wordpress.org/plugins/advanced-custom-fields/> to be installed. 28 28 29 29 1. Upload `acfp` to the `/wp-content/plugins/` directory … … 40 40 ```PHP 41 41 if ( function_exists( 'get_field' ) ) { 42 $min_max_array = get_field( 'dual_range_slider' );43 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) {44 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>';45 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array());46 }42 $min_max_array = get_field( 'dual_range_slider' ); 43 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) { 44 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>'; 45 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array()); 46 } 47 47 } 48 48 ``` … … 59 59 var_dump($is_updated); 60 60 } 61 ``` 61 62 62 = Shortcodes Examples =63 = Shortcodes Examples = 63 64 64 65 [acfp field="text_field_name" field_type="text"] … … 68 69 [acfp field="range_field_name" field_type="range" ] 69 70 70 [acfp field="number_field_name" field_type="number"] 71 [acfp field="number_field_name" field_type="number"] 71 72 72 73 [acfp field="number_field_name" format = "separators_decimals" decimal_separator="," thousands_separator="." decimals="4" field_type="number"] … … 94 95 ```PHP 95 96 if ( function_exists( 'get_field' ) ) { 96 $min_max_array = get_field( 'dual_range_slider' );97 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) {98 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>';99 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array());100 }97 $min_max_array = get_field( 'dual_range_slider' ); 98 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) { 99 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>'; 100 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array()); 101 } 101 102 } 102 103 ``` -
plus-features-for-advanced-custom-fields/trunk/README.txt
r2928290 r2928293 1 1 === Plus Features for Advanced Custom Fields === 2 2 Contributors: thewpcatalyst 3 Donate link: https://profiles.wordpress.org/thewpcatalyst/3 Donate link: <https://profiles.wordpress.org/thewpcatalyst/> 4 4 Tags: acfp, plus, acf, advanced custom fields, dual, range, slider, input, dual range slider 5 5 Requires at least: 5.0 … … 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html10 License URI: <http://www.gnu.org/licenses/gpl-2.0.html> 11 11 12 12 Adds Dual range slider to Advanced Custom Fields(ACF) plugin and supports some shortcodes for Email and URL links, Numbers with separators, and text. … … 25 25 == Installation == 26 26 27 Requires https://wordpress.org/plugins/advanced-custom-fields/to be installed.27 Requires <https://wordpress.org/plugins/advanced-custom-fields/> to be installed. 28 28 29 29 1. Upload `acfp` to the `/wp-content/plugins/` directory … … 40 40 ```PHP 41 41 if ( function_exists( 'get_field' ) ) { 42 $min_max_array = get_field( 'dual_range_slider' );43 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) {44 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>';45 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array());46 }42 $min_max_array = get_field( 'dual_range_slider' ); 43 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) { 44 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>'; 45 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array()); 46 } 47 47 } 48 48 ``` … … 59 59 var_dump($is_updated); 60 60 } 61 ``` 61 62 62 = Shortcodes Examples =63 = Shortcodes Examples = 63 64 64 65 [acfp field="text_field_name" field_type="text"] … … 68 69 [acfp field="range_field_name" field_type="range" ] 69 70 70 [acfp field="number_field_name" field_type="number"] 71 [acfp field="number_field_name" field_type="number"] 71 72 72 73 [acfp field="number_field_name" format = "separators_decimals" decimal_separator="," thousands_separator="." decimals="4" field_type="number"] … … 94 95 ```PHP 95 96 if ( function_exists( 'get_field' ) ) { 96 $min_max_array = get_field( 'dual_range_slider' );97 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) {98 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>';99 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array());100 }97 $min_max_array = get_field( 'dual_range_slider' ); 98 if ( is_array( $min_max_array ) && array_key_exists( 'min', $min_max_array ) && array_key_exists( 'max', $min_max_array ) ) { 99 echo 'Min value is: ' . wp_kses( $min_max_array['min'] , array()) . '<br>'; 100 echo 'Max value is: ' . wp_kses( $min_max_array['max'] , array()); 101 } 101 102 } 102 103 ```
Note: See TracChangeset
for help on using the changeset viewer.