WiscWeb - WordPress UW Theme - Embed Video or Social Media In A Text Block

WordPress has a list of pre-approved sites that can be used to automatically embed content into a Text Block using the URL of the associated site. This document will discuss some of those options.

WordPress Core functionality includes the ability for users to automatically embed items from certain sites (for example, YouTube) by simply copying and pasting in the URL into a Text Block page element. Below see some examples of sites that you can use this for:


You can grab the YouTube URL directly from your browser's address bar and past that into your Text Block.

Youtube Embed URL

Results in:

Embedded YouTube video


Videos from Kaltura (https://mediaspace.wisc.edu) can also be embedded. In your video, click on the Share icon below it and select the oEmbed option. Copy that URL and paste it into the Text Block of your page to display your video.

Kaltura embed code pasted into text block

Results in:

Kaltura video displayed

Twitter Feed

A Twitter feed can be embedded into a Text Block the same way, however you lose the ability to customize the feed when you simply paste the URL into your text area.

Twitter embed code

Results in:

Twitter feed now embedded

Remember you cannot customize this feed using this method, so the default list will show the 20 most recent tweets. You could also refer to this Knowledge Base document to customize the feed more: [Link for document 83301 is unavailable at this time.] .

Instagram Image

You can embed a single Instagram image into your site using this same method. Please note that this will only work for an individual image, not for an actual Instagram feed.

Instagram embed URL

Results in:

Embedded Instagram image

Facebook Post

You can embed a single Facebook post into your site using this same method. Please note that this will only work for an individual post, not for an actual Facebook feed. You can get the individual post URL by clicking on the timestamp of a particular post.

Facebook embed URL

Results in:

Facebook embedded post

There are many other "whitelisted" sites that can be used to embed items directly into a Text Block. There is no guarantee that this will remain the same as WordPress Core functionality consistently updates, but this is a site that lists all that are potentially usable: https://codex.wordpress.org/Embeds

Keywords:youtube vimeo twitter facebook instagram social media post embed kaltura mediaspace   Doc ID:83200
Owner:Matthew G.Group:WiscWeb CMS
Created:2018-06-26 09:29 CSTUpdated:2020-08-10 14:36 CST
Sites:DoIT Help Desk, WiscWeb CMS
Feedback:  0   0