- To embed a video or another object into a post or page, place its URL into the content area.
- Make sure the URL is on its own line and not hyperlinked (clickable when viewing the post).
For example:
Check out this cool video: That was a cool video.
WordPress will automatically turn the URL into a YouTube embed and provide a live preview in the visual editor.
Another option is to wrap the URL in the </code> shortcode. It will accomplish the same effect, but does not require the URL to be on its own line. Using <code></code> allows for the inclusion of a maximum (but not fixed) width and height: <code>...
If WordPress fails to embed the URL, the post will contain a hyperlink to the URL