PUBLIC DOCUMENTATION

Fields, content types and visual FSE editing with DMBB.

← All Help Topics
HOW TO USE · VERSION 9.5.0

Multi Select (Pro)

A dropdown/list that accepts multiple choices.

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.

Multi Select field: builder settings, storage key and validation options.
Multi Select field: builder settings, storage key and validation options.
Multi Select field: sample controls in the content editor.
Multi Select field: sample controls in the content editor.
What it does Stores multiple selected values.
Use it when Tags, features, related items or multiple classifications.
How to configure Add options using value|Label, one per line. Hold the normal browser multi-select controls while editing.
Saved as An array of selected values.
EXAMPLE

Features

wifi|Wi-Fi parking|Parking breakfast|Breakfast
Read a Multi 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.

$values = get_post_meta( get_the_ID(), 'your_meta_key', true );
$values = is_array( $values ) ? $values : array();

foreach ( $values as $value ) {
    echo '<span>' . esc_html( $value ) . '</span>';
}
Multi Select returns an array of selected option values. Do not treat it like a normal scalar text field. 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.