Text Area


目录

Description

The Text Area field creates a basic textarea input, useful to store simple (i.e., unstyled) paragraphs of text to use in your theme.

Screenshots

Creating a Text Area field in ACF.

Creating a Text Area field in ACF.

The Presentation tab controls how the field will display.

The Presentation tab controls how the field will display.

How the Text Area field appears when editing content. You can see how changes made on the Presentation tab are reflected here.

How the Text Area field appears when editing content. You can see how changes made on the Presentation tab are reflected here.

Changelog

Settings

Template usage

Display value with paragraphs automatically added

This example demonstrates how to display a Text Area field named product_description when the “Automatically add paragraphs” setting is enabled.

<h3>Product Description</h3>
<?php echo wp_kses_post ( get_field('product_description') ); ?>

Display value without formatting

This example demonstrates how to display a Text Area field named product_description when the “No Formatting” setting is enabled. In this case, we have to indicate a paragraph manually with the <p> tag.

<h3>Product Description</h3>
<p><?php echo wp_kses_post ( get_field('product_description') ); ?></p>

版本号 #2
由 壳壳虫 创建于 2026-08-29 15:44:03 UTC
由 壳壳虫 更新于 2026-08-29 15:44:03 UTC