When you’re writing frequent posts on your WordPress website, you know that many times you’ll need to embed external content.
Whether that is a video from YouTube or Vimeo, a music clip from SoundCloud or Spotify, a Tweet or a Vine, a Flickr on an Instagram, there is not much to be done. You simply copy and paste the URL you want to embed into your WordPress article and that’s it.
This article will go through all of the details related to the WordPress embed and oEmbed functionality.
Why Does WordPress Need an Embed Feature?
One of the things which WordPress does really nicely when compared to other CMS' I’ve used, is its ease to embed external media.
Without mentioning any names, embedding a simple a YouTube video into an article using one of the most popular CMS's out there (other than WordPress) can be a nightmare of epic proportions.
Side note: this is a plea, not a dig. Embedding a YouTube video into an article should be a breeze in any CMS.
Why does this happen?
In reality, embedding external content is typically a potential security issue. Content is typically embedded using iFrames. An iFrame is simply a new “window” which is allowed to reference any external functionality.
If you want to embed a video from YouTube for example, you would need to embed the following syntax:
Continue reading %The Complete Guide to Using WordPress Embeds%
by David Attard via SitePoint
No comments:
Post a Comment