The Plain Text field is used to store the simplest of text, plain text. It is intended for 255 characters or less, so usually just a string of text, like a name or simple information content.
For longer text, you should probably use the Paragraph Text Field.
- Fill out the Basic Field Settings (Label, Description and Field Name)
- Select Field Type: Plain Text.
- Set any Additional Field Options to control behavior or other details.
- Complete any Advanced Field Options for the fields to impact it’s visibility or access control.
- Select Add Field (or Update Field if you’re changing an existing field) to save your changes.
Configuring the Plain Text Field
Basic Field Settings
See Basic Field Settings for full explanations of these settings. You will choose ‘Plain Text‘ under Field Type to create a Plain Text field.
Additional Field Options
There are four Additional Field Options for Plain Text Fields:
- Allow Shortcodes? Checking this option will allow the processing of shortcodes within the Plain Text Field.
- Allow HTML? If you check this option, you will receive another prompt for Allowed HTML Tags (see below):The options you choose in the Tags list will determine which HTML tags will be allowed in the Plain Text Input.
- Maximum Length: This is set for a default of
255, but you can set this to any specific numeric value if you want to limit the length of this field, or set it for
-1if you want to make it an unlimited field length.
- HTML Placeholder: Placeholders can provide instructions or an example of the required data format for a field. Please note: 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.
Advanced Field Settings
See Advanced Field Options for the explanations of these field settings that define default values, visibility or access control for your field.
REST API Settings
You can configure these settings to override the REST API settings for each individual field. These are discussed in depth in our Advanced Topics, REST API documentation.