Controls
Number
Number control allows you to add numeric input fields with optional minimum, maximum, and step values.
Control Settings
- Minimum Value - Set the lowest allowed number
- Maximum Value - Set the highest allowed number
- Step Size - Define increment/decrement step (default: 1)
- Placeholder - Text shown when no value is entered
Usage
PHP
<div class="price">
<?php echo esc_html( $attributes['control_name'] ); ?>
</div>
Handlebars
<div class="price">
{{control_name}}
</div>
Post Meta
<div class="price">
<?php echo esc_html( get_lzb_meta( 'control_meta_name' ) ); ?>
</div>
Use control settings to create proper value constraints for better user experience (e.g., price range from 0 to 1000 with steps of 0.5).