A range field gives editors a slider instead of a number box. It suits values with an obvious scale — a rating, a score, an energy band — where dragging is quicker than typing.
What It Does
The field stores a number, exactly like a Number field. The difference is entirely in how the editor enters it: a slider bounded by a minimum and maximum.
Before You Start
- Nexter Extension is installed and active.
- Content Fields is enabled under Nexter → Content Fields.
- You have a field group, or are about to create one.
Add a Range Field
- Go to Nexter → Content Fields and open the Group Fields tab.
- Open a field group, or create a new one.
- Click Add Field.

- Set Field Label to Energy rating. The Field Name fills in automatically and is what you use in code.
- Set Field Type to Range.

- Click Update.


Field Settings
Every field is configured across four tabs. These are the settings this field type offers, read from the field group builder in Nexter Extension 4.9.0.
General
| Setting | Options | What it does |
|---|---|---|
| Default Value | No help text in the UI. |
Validation
| Setting | Options | What it does |
|---|---|---|
| Required | No help text in the UI. |
Presentation
| Setting | Options | What it does |
|---|---|---|
| Instructions | No help text in the UI. | |
| Minimum Value | No help text in the UI. | |
| Maximum Value | No help text in the UI. | |
| Step Size | No help text in the UI. | |
| Placeholder Text | No help text in the UI. | |
| Prepend | No help text in the UI. | |
| Append | No help text in the UI. | |
| Wrapper Attributes | No help text in the UI. |
Conditional Logic
| Setting | Options | What it does |
|---|---|---|
| Conditional Logic | No help text in the UI. |
When to Use It
- A rating or score out of ten.
- An energy or efficiency band.
- A percentage complete.
Display the Value
The value is a number, so read it as one:
<?php
$score = nxt_field_value( 'energy' );
if ( '' !== $score ) {
printf( '%s / 10', esc_html( $score ) );
}
Limitations
- A slider is imprecise for fine-grained values. Use a Number field where exactness matters.
- As with any numeric meta, sorting needs
'meta_type' => 'NUMERIC'.
Troubleshooting
The slider will not reach the value I want
The minimum, maximum and step are set on the field. Edit the field and widen the bounds, or reduce the step.
The value is empty on a new post
A range field has no value until it is moved or a default is set. Set a Default Value if every post should have one.










