ZeroToWP

Embed

Quick Definition

An embed is external content — like a YouTube video, tweet, or Spotify playlist — displayed directly on your WordPress page. WordPress uses the oEmbed protocol to automatically convert pasted URLs into rich, interactive embeds without any HTML coding.

WordPress oEmbed documentation

What Is an Embed?

External content (YouTube, Twitter, Spotify) displayed on your page via the oEmbed protocol. Paste a URL in the block editor, WordPress auto-converts it. No HTML needed.

How oEmbed Works

  1. Paste URL in editor
  2. WordPress checks whitelist of 30+ providers
  3. API request fetches embed HTML
  4. Provider returns iframe/player
  5. WordPress renders it responsively

Supported Providers

CategoryProviders
VideoYouTube, Vimeo, TikTok, Dailymotion
SocialTwitter/X, Instagram, Facebook, Reddit
AudioSpotify, SoundCloud, Apple Podcasts
OtherWordPress.com, Flickr, SlideShare, Imgur

Block Editor

Paste URL directly (auto-detected) or use dedicated embed blocks. Custom HTML block for unsupported services.

Performance

  • Lazy load iframes
  • Limit embeds per page (3-5 max for speed)
  • Facade loading — thumbnail until clicked

Why It Matters

Richer content without hosting media yourself. Simple as pasting a URL. Watch the performance impact with many embeds.

Sources: Developer.WordPress.org, oEmbed.com

Related Terms

Related Articles