Embed Field

Paste a link and preview what it embeds.

The Embed field takes the link of a video, a post or any content WordPress can embed, and previews it right under the field.

Configuration

Go to Modern Fields > Fields groups and add the Embed field. Its settings are in the inspector:

Effect
PlaceholderThe hint shown in the empty field.
The Embed field settings

Display the embed

The field stores the link. Read it with get_field() and let WordPress embed it:

PHP

With Modern Fields Pro, the Field value block displays the field as a native Embed block, without code.


Icon Field

Date Field


In this documentation