Basic fields
Single-value inputs for text and numbers. All are free. Add any of them with + Add Field in the field-group editor, then read them with fstn_get_field().
Text Free
A single line of plain text.
Configure
Default value, placeholder, prepend/append text, and a character limit (set validation rules on the Validation tab — required, min/max length, pattern).
Stores
A string ('' when empty).
Display
<h2><?php fstn_the_field( 'headline' ); ?></h2>
Textarea Free
Multiple lines of plain text.
Configure
Default value, placeholder, number of rows, and whether new lines are converted to <br> on output.
Stores
A string.
Display
<p><?php fstn_the_field( 'summary' ); ?></p>
<?php // preserve line breaks yourself: ?>
<?php echo nl2br( esc_html( fstn_get_field( 'summary' ) ) ); ?>
Number Free
A numeric input with optional min, max and step.
Configure
Default, placeholder, minimum, maximum, step, and prepend/append (e.g. a currency symbol or unit).
Stores
An int (or float when decimals are enabled), null when empty.
Display
<?php $price = fstn_get_field( 'price' ); ?>
<span>$<?php echo esc_html( number_format( $price, 2 ) ); ?></span>
Range Free
A slider for choosing a number between a min and max.
Configure
Minimum, maximum, step, default, and prepend/append.
Stores
An int (or float).
Display
<div class="rating"><?php echo (int) fstn_get_field( 'score' ); ?>/10</div>
Email Free
A text field validated as an email address.
Configure
Default, placeholder, prepend/append. Format is validated on save.
Stores
A string.
Display
<?php $email = fstn_get_field( 'contact_email' ); ?>
<a href="mailto:<?php echo esc_attr( $email ); ?>"><?php echo esc_html( $email ); ?></a>
URL Free
A text field validated as a URL.
Configure
Default, placeholder.
Stores
An escaped URL string.
Display
<a href="<?php echo esc_url( fstn_get_field( 'website' ) ); ?>">Visit</a>
Password Free
A masked single-line input, for storing a value you don't want shown on screen while editing.
Configure
Placeholder, prepend/append.
Stores
A string.