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.
Supported Default Allowed websites list
You can always check the latest at
https://codex.wordpress.org/Embeds
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.