00
Days
00
Hours
00
Minute
00
Second

Textarea

Use the Text Area field when you need to store plain text content, such as descriptions or notes, that can be displayed in your theme.

Screenshots

ECM Textarea fields type

Validation Settings

The Validation settings include:

  • Required: Toggle to make the field mandatory (default: off).
  • Character Limit: Toggle to set limits; includes Max (maximum characters) and Min (minimum characters) input fields (both optional, default: unset).
ECM Textarea Valiadation Settings

Conditional Logic Settings

  • Enable: Toggle to activate conditional logic for the field (default: off).
  • Show this field if: Builds rules to control field visibility.
  • Rule Structure: Select a field (e.g., “Number”) → Choose operator (e.g., “Value is not equal to”) → Specify value or field name (e.g., “Name”).
  • Logic Operators: Combine rules with “And” (within group) or “OR” (between groups).
  • Add Rule Group: Button to create additional rule groups for complex conditions.
ECM Textarea Conditional Logic settings

Screenshots

Textarea field in modern UI
Textarea field in modern UI
Textarea field in modern UI
Textarea in Gutenberg UI

Template usage

Display value with paragraphs automatically added

This example shows how to output a Text Area field named product_description when the Automatically add paragraphs option is turned on. Line breaks will automatically be wrapped in <p> tags.

<h3>Product Description</h3>

<?php echo wp_kses_post ( ecm_get_field('product_description') ); ?>

Display value without formatting

This example shows how to output a Text Area field named product_description when the No formatting option is selected. In this case, you’ll need to manually wrap your content with <p> tags to define paragraphs.

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