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.
Select field: builder settings, storage key and validation options.Select field: sample controls in the content editor.
What it doesLets the editor choose exactly one option.
Use it whenStatus, category-like settings, layouts or predefined choices.
How to configureAdd one option per line using value|Label.
Saved asThe selected option value.
EXAMPLE
Layout
wide|Wide
boxed|Boxed
Read a Select 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.
A Select field stores one selected option value, not the human-readable label. Compare against the option value you configured before the pipe character. Security: Escape the value for its output context; do not print unescaped post meta directly into HTML.