Available Field Types — Developer Guide — Pure Metafields

Docs/Developer Guide/Available Field Types

Available Field Types

What each type saves is what you get back from the read helpers — know the shape before you template against it. A terse version of this table lives in Reference → Field Types.

TypeStored valueNotes
text textarea url numberstringPlain scalar.
colorpicker"#rrggbb"Hex string.
selectstring keyOptions are an assoc [value => label].
tabs radio_buttonsetstring keyChoices stored under choices.
switch'on'/'off' or boolReal PHP bool when data_type => 'boolean'.
checkbox multicheck[key => '1']Only checked keys present.
datepickerdate string
imageID · URL · {id,url,alt}Depends on return_format.
galleryCSV / array of IDsRead with the gallery helper.
repeaterarray of row objectsDecoded automatically on read.
post_selectID or slugPer save_format; uses Select2.
color_gradient{stops, angle, type…}Nested array.
multicolor[key => '#color']Named color slots.
typography spacing dimensionassoc arrayComposite values.
editorHTML stringOutput with wp_kses_post.
radio_image group section_headingkey / inline / noneLayout & choice helpers.

How the fields look

A close-up of the field types editors reach for most, exactly as they render in the builder.