
The oEmbed field can store a single URL. On output, it uses the supported Embeds available to WordPress.
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: oEmbed.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- Embed Width
The optional width to use for the oEmbed. Leave as 0 (zero) to default to no width. - Embed Height
The optional height to use for the oEmbed. Leave as 0 (zero) to default to no height. - Show preview
Whether to show the preview when entering the embed URL.
How to Display
Display with a Shortcode
[pods field="my_oembed_field"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( 'my_oembed_field' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( 'my_oembed_field' );