
The Plain Text field can store single-line text values. It is intended for 255 characters or less, so it’s best for a single string of text, like a name or simple information content.
For longer text, you may want to use the Paragraph Text Field.
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: Plain Text.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- Output Options
These options will change the way your field value will display.- Trim extra whitespace before/after contents
This will remove any extra spaces before or after the field value. - Allow Shortcodes
This will process any [shortcodes] that you may have in the field value. - Allow HTML
This will allow HTML tags to be rendered normally.- Allowed HTML Tags
This will let you specify which HTML tags to allow (default: strong em a ul ol li b i), enter them without the < > tags and separated by space. Leave empty to allow all HTML tags.
- Allowed HTML Tags
- Trim extra whitespace before/after contents
- Maximum Length
The maximum length of text to allow (default: 255), you can set it to -1 to disable the limit. - HTML Placeholder
This is the text that will show on the input field when it is empty to help guide content entry. The placeholder is not a replacement for labels or description text, and it is less accessible for people using screen readers. For more details on the usage of Placeholder Text, you can read the documentation at W3 on Placeholders.
How to Display
Display with a Shortcode
[pods field="my_text_field"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( 'my_text_field' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( 'my_text_field' );