
This field allows you to enter custom HTML to be displayed within your content management form. It can be placed before, after, or in-between other form fields.
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: HTML Content.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- HTML Content
This is the HTML content you want to display. - Disable the form label
When enabled, the form label will not show and the HTML content will appear full width. - 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.
- Enable oEmbed
Embed videos, images, tweets, and other content using Embeds. - Enable wptexturize
Transforms less-beautiful text characters into stylized equivalents using wptexturize(). - Enable convert_chars
Converts text into valid XHTML and Unicode using convert_chars(). - Enable wpautop
Changes double line-breaks in the text into HTML paragraphs using wpautop(). - Allow Shortcodes
This will process any [shortcodes] that you may have in the field value.
- Trim extra whitespace before/after contents
How to Display
This field does not store values and does not display values. If you need to output the HTML from the field itself, you can do this with the examples below. You can use the Field Information notation to display options from a field.
Display with a Shortcode
[pods field="_field.my_html_field.html_content"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( '_field.my_html_field.html_content' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( '_field.my_html_field.html_content' );