Why do video urls pop into videos and some websites into Cards?

You probably know that just putting in the URL of a youtube video into your page content is updated by WordPress into a video player. Most other video sites receive the same treatment including Vimeo, Vine, Mixcloud, Ted and WordPress.tv

However, this feature extends to more sites and has been growing in its extent over time. There is a list of all the sites that currently become active content cards at the end of this post.

What about my site

The good news is since WordPress 4.4 the feature is available for all WordPress Sites to display Embeds within themselves.

You can put the URL of a page of your site, within another page and an embed will appear like this show below.

Share your Site

You can see an embed version of a page for your site by adding ‘/embed’ to end of any page URL. This content can then be shared within an iframe on any other site.

Add other embed sites

If you want to add a new oEmbed site outside the list allowed by default, you can use a bit of code.

 <?php wp_oembed_add_provider( $format, $provider, $regex ); ?>

Limitation

However, after a few more hours research and testing, I find that this function does not include the option to add another WordPress Site at present. The WordPress implementation is not the strict standard. You can not share one WordPress Page within another site unless you create your own iframe.

Why I love Updraft Plus Migration add-on

Supported Default Allowed websites list

You can always check the latest at

https://codex.wordpress.org/Embeds

Service Embed Type Since
Animoto Videos WordPress 4.0
Blip Videos WordPress 2.9
Cloudup Videos, Galleries, Images WordPress 4.4
CollegeHumor Videos WordPress 4.0
DailyMotion Videos WordPress 2.9
Facebook post, activity, photo, video, media, question, note WordPress 4.7
Flickr Videos & Images WordPress 2.9
FunnyOrDie.com Videos WordPress 3.0
Hulu Videos WordPress 2.9
Imgur Images WordPress 3.9
Instagram Images WordPress 3.5
Issuu Documents WordPress 4.0
Kickstarter Projects WordPress 4.2
Meetup.com Various WordPress 3.9
Mixcloud Music WordPress 4.0
Photobucket Images WordPress 2.9
PollDaddy Polls & Surveys WordPress 3.0
Reddit Posts & Comments WordPress 4.4
ReverbNation Music WordPress 4.4
Scribd Documents WordPress 2.9
SlideShare Presentation slideshows WordPress 3.5
SmugMug Various WordPress 3.0
SoundCloud Music WordPress 3.5
Speaker Deck Presentation slideshows WordPress 4.4
Spotify Music WordPress 3.6
TED Videos WordPress 4.0
Tumblr Various WordPress 4.2
Twitter Tweet, profile, list, collection, likes, Moment WordPress 3.4
VideoPress Videos WordPress 4.4
Vimeo Videos WordPress 2.9
Vine Videos WordPress 4.1
WordPress plugin directory Plugins WordPress 4.4
WordPress.tv Videos WordPress 2.9
YouTube Videos WordPress 2.9

Notes

You can add new providers using

 <?php wp_oembed_add_provider( $format, $provider, $regex ); ?>
  • Twitter – older versions of WordPress have issues with https embeds, just remove the s from the https to fix.
  • YouTube – only public and “unlisted” videos and playlists – “private” videos will not embed.
  • Tumblr – only posts (name.tumblr.com/post/etc) are recognised, not standalone images (name.tumblr.com/image)
  • One WordPress site can refer to it’self, but not another site.