Choice fields

Let editors pick from a set of options you define. All are free. Each option is a value : Label pair — you read the value in code and show the Label to editors.

Select Free

A dropdown of choices.

Configure

Your list of choices (one value : Label per line), a default, Allow null (an empty option), and Allow multiple (a multi-select).

Stores

The chosen value as a string — or an array of strings when Allow multiple is on.

Display

<?php echo esc_html( fstn_get_field( 'status' ) ); ?>

<?php // multiple: ?>
<?php foreach ( (array) fstn_get_field( 'tags' ) as $tag ) : ?>
  <li><?php echo esc_html( $tag ); ?></li>
<?php endforeach; ?>

Checkbox Free

A list of options where several can be ticked.

Configure

Choices, defaults (one or more), and layout.

Stores

An array of the checked values (empty array when none).

Display

<ul>
<?php foreach ( fstn_get_field( 'features' ) as $feature ) : ?>
  <li><?php echo esc_html( $feature ); ?></li>
<?php endforeach; ?>
</ul>

Radio Free

A list of options where exactly one is selected.

Configure

Choices, a default, and layout (vertical or horizontal).

Stores

The chosen value as a string.

Display

<span class="size size--<?php echo esc_attr( fstn_get_field( 'size' ) ); ?>">
  <?php echo esc_html( fstn_get_field( 'size' ) ); ?>
</span>

Button Group Free

Like Radio, but shown as a row of buttons — good for a small, always-visible set of options.

Configure

Choices, a default.

Stores

The chosen value as a string.

Display

<?php echo esc_html( fstn_get_field( 'alignment' ) ); ?>

True / False Free

A single on/off toggle.

Configure

A message shown beside the toggle, and the default state.

Stores

A bool.

Display

<?php if ( fstn_get_field( 'is_featured' ) ) : ?>
  <span class="badge">Featured</span>
<?php endif; ?>
Tip: because choice values are strings you control, use short machine-friendly values (in_stock) and friendly labels (In stock). You can then use the value directly in a CSS class or a query.