
The Email field can store email addresses with additional validation checks. Validation of the field will run through the WordPress function is_email().
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: Email.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- Enable HTML5 Input Field
When enabled, this will render the field withtype="email"using the default browser interface. Based on your needs, the browser interface may be a better experience especially for mobile devices. For more details on HTML5 types, you can read the documentation at W3 on Validating Common Input. - 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
You should be aware that there are bots that scrape websites for emails. The general solution to this is to only output email addresses only if someone is logged in. Be aware of your needs and the risks involved with displaying email addresses on your website.
Display with a Shortcode
[pods field="my_email_field"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( 'my_email_field' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( 'my_email_field' );