Text Field

A simple single-line text input.

The Text field is a single-line text input: a title, a name, a short label.

Configuration

Go to Modern Fields > Fields groups and add the Text field. Its settings are in the inspector:

Effect
PlaceholderThe hint shown in the empty field.
Maximum of charactersThe maximum number of characters the user can type.
The Text field settings

Display the value

The field stores the text as typed. Display it with the_field(), or read it with get_field():

PHP

Without code, the Field value block displays the field as a Heading, a Paragraph or a Button.


Textarea Field


In this documentation