Overview
The Text field creates a simple text input. This field is useful to store single string values.
Screenshots
Interface
Settings
Changelog
- Formatting setting removed in v5.0.0
Settings
- Default Value: Set a default value for this field when creating a new post.
- Placeholder: Appears within input when no value exists
- Prepend: Adds a visual text element before the input
- Append: Adds a visual text element after the input
- Character Limit: Limits the number of characters allowed
Template usage
The API will return a string.
<h2><?php the_field('text'); ?></h2>