Controls
Range
Range control is used to store a number value for the block. See examples below to use this control.
Control Settings
- Minimum Value – the minimum (numeric) value allowed
- Maximum Value – the maximum (numeric) value allowed
- Step Size – the increment at which a numeric value can be set. Defaults to 1
Usage
PHP
<p>
Your number is:
<?php echo $attributes['control_name']; ?>
</p>
Handlebars
<p>
Your number is:
{{control_name}}
</p>
Post Meta
<p>
Your number is:
<?php echo get_lzb_meta( 'control_meta_name' ); ?>
</p>