Field Render

Display a Post Status selector as radio, checkbox or select field type.

Field Group

Field Settings

Setting nameDescription
Allow post statusesFilter which post status can be chosen
AppearanceSelect the appearance of this field
Return ValueReturn the post status name or object
Allow NullAllow empty value
LayoutChoose the layout
ToggleAllow to toggle all values
Allow CustomAllow custom value
Select multiple valuesAllow multiple values selection
Stylised UIEnable Select2 UI style

Field Value

Value can then be retrieved using the common get_field() function. Usage example:

$post_status = get_field('post_status');

// publish