PUBLIC DOCUMENTATION

Fields, content types and visual FSE editing with DMBB.

← All Help Topics
HOW TO USE · VERSION 9.5.0

Radio (Pro)

Visible one-choice options.

Screenshots and walkthrough — expand to view

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.

Radio field: builder settings, storage key and validation options.
Radio field: builder settings, storage key and validation options.
Radio field: sample controls in the content editor.
Radio field: sample controls in the content editor.
What it does Lets the editor choose one option from a visible set.
Use it when Small lists where seeing all choices is faster than opening a dropdown.
How to configure Add one option per line using value|Label.
Saved as The selected option value.
EXAMPLE

Alignment

left|Left center|Center right|Right
Read a Radio 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.

$value = get_post_meta( get_the_ID(), 'your_meta_key', true );

if ( 'large' === $value ) {
    echo esc_html( 'Large' );
}
Radio stores one selected option value as a scalar string. Use the configured option value, not its display label. Security: Escape the value for its output context; do not print unescaped post meta directly into HTML.

Documentation for Dynamic Meta Box Builder 9.5.0.