Screenshots use sample data and English labels. Follow the translated instructions on this page; your theme, language, permissions and license can change the available controls. Select an image to view it at full size.
Number field: builder settings, storage key and validation options.Number field: sample controls in the content editor.
What it doesAccepts numeric values.
Use it whenPrices, quantities, scores, dimensions or rankings.
How to configureChoose Number as the field type and enter an optional default number.
Saved asA numeric scalar value.
EXAMPLE
Priority Score
10
Read a Number Field in PHP
Use the field Key from the builder as the second argument of get_post_meta(). Escape or sanitize the value for its final output context.
WordPress post meta is returned as a string by default. Cast the value to int or float when your code needs a numeric value. Security: Escape the value for its output context; do not print unescaped post meta directly into HTML.