Text

Overview

The Text field creates a simple text input. This field is useful to store single string values.

Screenshots

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>

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.