The Textarea field creates a simple textarea. This field is useful to store simple paragraphs of text to use in your theme.

Creating a textarea

The Textarea field contains options to customize your field:

  • Default Value: Set a default value for this field when creating a new post.
  • Formatting: This option will determine how to render the value. Selecting “HTML” will convert any tags in the value to html tags. Selecting “auto <br />” will convert any new lines to html line breaks. Selecting “None” will not convert any tags and you will see any html displayed as normal text.

Edit Screen

Template usage

The API will return a string.

<p><?php the_field('textarea'); ?></p>

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.