Quick summary
Embedding an iframe in WordPress lets you display external content — like a YouTube video — directly inside any post using the Custom HTML block. This step-by-step walkthrough covers everything from accessing your WordPress admin to saving the final embedded content.
Steps
- Go to your WordPress admin account, click on Posts, and select All Posts.
- Select the post you want to edit to open it in the block editor.
- Scroll to the section in your post where you want to insert the iframe.
- Click the plus icon to add a new block.
- Search for HTML and select the Custom HTML block.
- Navigate to your video of choice and click the Share button.
- Click the Embed icon to generate the embed code.
- Click Copy to copy the generated embed code.
- Paste the embed code into the Custom HTML block's input area.
- Click Preview to check how the iframe looks, then click Save in the upper right corner to publish your changes.
.gif)



