WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: youtube-embed (Used by 2,294 domains)

Embeds for YouTube

NOTE: This plugin supports the ability to insert the standard Embeds for YouTube and playlist players. However, if you need to embed a YouTube facade, livestream, or gallery, we recommend the EmbedPlus.com plugin that’s freely available here. It’s been around for many years and is highly trusted.

Embeds for YouTube is an incredibly fast, simple, yet powerful, method of embedding YouTube videos into your WordPress site.

Key features include…

  • Build your own playlists and play them back however you want
  • Automatically generate playlists based on user name
  • Create multiple profiles – use them for different videos to get the exact style that you want
  • Dynamic video sizing for responsive sites
  • Housekept caching keeps the code generation nimble and your database tables slimline
  • Google compatible metadata is added to the video output based on data provided by the YouTube API – great for SEO!
  • Support for Do Not Track
  • Compatible with Video SEO for WordPress, a3 lazy load and WordPress Video Overlay Ads and many more. In the case of Video SEO and WordPress Video Overlay Ads, their options will even appear under the Embeds for YouTube menu for total simplicity!
  • Use Turn Off The Lights? This plugin works with it beautifully.
  • iFrame Resizer and FitVids.js supported to improve content resizing
  • Works “out of the box” with 4K, 60FPS and Chromecast – stream your embedded videos to your TV!
  • And much, much more!

👉 Please visit the Github page for the latest code development, planned enhancements and known issues 👈

🚦 Getting Started

How easy is it to use? The fine people at Webucator have put together an excellent video showing you how to get started with it..

To add a video to a post or page simply use the shortcode [youtube]video[/youtube], where video is the ID or URL of the YouTube video. Alternatively, you can add one (or more) widgets to your sidebar.

If you’re not sure what the video ID is, please head to the FAQ section where it’s explained in greater detail!

Within the administration area, click on the Settings menu option and then Embeds for YouTube to view and edit the generic settings for the plugin. Also under the Embeds for YouTube menu (see screenshot 1) you can click on the Profiles sub-menu to set the default options which define the output of your videos. Any videos you display (unless overridden by parameters – more on that later) will use the settings from the Profiles screen.

Although this document contains a lot of information more is provided on the various administration pages. Whilst on the administration pages, click on the “Help” button in the top right for some useful tips and links. If anything isn’t covered and you’re unsure of what it does please ask on the forum.

🔑 Creating an API Key

At the top of the Embeds for YouTube Settings administration screen is an option to specify an API key. This is optional but many of the features of this plugin – including accurate video information being added to the metadata – will not be available without it. Thankfully an API key is easy to get and is free.

  1. Head to the YouTube Developers Console
  2. Click on CREATE PROJECT
  3. Once created, head into it
  4. In the APIs box, click on “Go to APIs overview”
  5. Click on “ENABLE APIS AND SERVICES” at the top of the screen
  6. You can now choose your API – click on YouTube Data API v3
  7. Click the “ENABLE” button
  8. Click on “CREATE CREDENTIALS”
  9. On the drop-downs, choose the API we selected before, “Web browser and “Public data”
  10. You will now be presented with your API key

The API key can now be pasted into the settings in WP Admin.

Further embedding options

A basic shortcode will embed your video using your default profile settings. However, you may wish to override some of these options on a video-by-video basis – this is done via parameters added to the shortcode.

e.g. [youtube width=300 height=200]Z_sCoHGIpU0[/youtube]

Which options are available depends upon the users’s set-up (for example, whether they have Flash installed or not). You can specify any of the parameters but they may be ignored. Please see the Profile screen in Administration for further details on any restrictions which may exist.

  • annotation – yes or no, this determines if annotations are shown
  • autoplay – yes or no, should the video automatically start playing?
  • cc – yes or no, decided whether closed captions are displayed. If you don’t specify anything then the user’s default will be used.
  • cc_lang – Closed captions language. Select a ISO 639-1 two-letter language code or leave blank for the default
  • color – white or red, the color of the progress bar (see the FAQ about having a white progress bar with the light theme)
  • controls – 0, 1 or 2, this decides whether the controls should display and when the Flash will load. A value of 0 will not show the controls but 1 or 2 will. A value of 2 will load Flash once the user initiates playback – otherwise it’s loaded straight away.
  • disablekb – yes or no, switch off keyboard controls
  • fullscreen – yes or no, this will add the fullscreen button to the toolbar
  • height – the video height, in pixels
  • language – The interface language. The parameter value is an ISO 639-1 two-letter language code or a fully specified locale. Leave blank for the default
  • list – if you’ve specified your own list, use this to select the way the videos should be output. Should be random (display videos in a random order), single (show just one video, randomly picked from the list) or order (show each video in the original order – this is the default)
  • loop – yes or no, whether to start the video again once it ends
  • modest – reduce the branding on the video
  • playsinline – whether videos play inline or fullscreen in an HTML5 player on iOS.
  • profile – specify a different default profile (see section on Profiles for further details)
  • ratio – allows you to define a window ratio – specify just a height or width and the ratio will calculate the missing dimension. Uses the format x:x, e.g. 4:3, 16:9
  • related – yes or no, show related videos
  • responsive – whether to use responsive output or not. When switched on the video will resize when your site does (i.e. responsive). If a video width is supplied this will be the maximum width, otherwise full width will be assumed. Height is ignored and will be worked out automatically.
  • start – a number of seconds from where to start the video playing
  • stop – this stops the video at a specific time, given in seconds
  • style – apply CSS elements directly to the video output
  • template – specify a template (see section on Templates for further details)
  • user – yes or no, create a playlist based on a user’s uploads. The search word should be specified instead of a video ID. See “Automatically Generate Playlists” option for more details
  • width – the video width, in pixels

Alternative Shortcodes

Within Administration, selecting Settings -> Embeds for YouTube will provide a list of generic options. One option is named Alternative Shortcode and allows you to specify another shortcode that will work exactly the same as the standard shortcode of [youtube]].

There are 2 reasons why you might want to do this…

  1. If migrating from another plugin, it may use a different shortcode
  2. If another plugin uses the same shortcode (e.g. Jetpack) this will allow you to specify and use an alternative

The new shortcode can also have its own default profile assigned to it (see the Profiles section for more details on this).

Widgets

Widgets can be easily added. In Administration simply click on the Widgets option under the Appearance menu. Embeds for YouTube will be one of the listed widgets. Drag it to the appropriate sidebar on the right hand side and then choose your video options – any that aren’t specified are taken from your supplied profile. It’s best to have a profile set-up specifically for widgets!

If you wish to display an automatically generated playlist based on user name, simply change the “ID Type” appropriately and then specify the name where the video ID would normally be entered.

And that’s it! You can use unlimited widgets, so you can add different videos to different sidebars.

Playlists

YouTube allows users to create their own playlists – collections of videos that can be played in sequence. These are embedded in the same way, by supplying the playlist ID.

e.g. [[youtube]PLVTLbc6i-h_iuhdwUfuPDLFLXG2QQnz-x[/youtube]

An alternative to the YouTube build playlists is the build-in lists function – see the Lists section for further details.

Templates

Both in the profile and as a parameter you can specify a template. This allows you to define any CSS that you wish to “wrap” around the YouTube output.

The template consists simply of your choice of HTML but with %video% where you wish the video to appear.

e.g.

%video%

For reasons of security, only specific HTML tags are valid – these are a, br, div, img, p span and strong. If there are any others that you’d like to have added, please let me know via the forum.

Profiles

You’ve probably already had a look at the default profile, accessible by selecting Profiles from the Embeds for YouTube Administration menu option. Here you can specify the default option which will apply to any embedded video.

However, in the top right hand corner is a drop-down box and a button marked Change profile. Simply select an alternative profile and click the button and you can then edit the options for this alternative profile. You can even name it as well.

To use this profile, simply use the parameter profile= followed by the profile name or number. The options for this profile will then be used.

This could be useful, for instance, for having a separate profile for different parts of your site – posts, sidebar, etc – or for different video types (e.g. widescreen).

By default you have 5 extra profiles – if you wish to have more (or less) this number can be changed from the Embeds for YouTube settings screen.

📝 Lists

Although this plugin will play standard YouTube playlists their playback options are limited. Instead you can create your own video lists. Under the Embeds for YouTube administration menu is a sub-menu named Lists. Select this and you will be shown a screen where you can type in a list of video IDs (or URLS). You can also provide a name for the list.

When saving the list each video is validated.

As with profiles you can select the list from a drop down in the top right-hand corner. You can also change the number of lists from the Options sub-menu too.

To use a list, simply specify the list name or number instead of a video ID, as well as a parameter to specify how you wish the list to be played back.

e.g. [youtube list='order']List 1[/youtube]

The list parameter allows to to either play each in turn, play them randomly, or have just one played (but picked randomly).

An option within the general options screen allows you to change whether this parameter MUST be used. If switched on, you will gain a performance increase, otherwise the plugin has no way of knowing if you’re asking for a playlist so must verify the ID you’ve specified against all your lists.

Automatically Generated Playlists

YouTube includes options to automatically generate playlists based upon a user name.

To use, simply use the user parameter to switch the appropriate option on. Then, instead of a video ID or URL, you should specify the user name.

📏 Third Party Resizing Scripts

Within the Embeds for YouTube settings screen there is an option to set a third party resizing script – either iFrame Resizer or FitVids.js. These work alongside the existing IFRAME but try and improve the output, particularly with regard to how the output is sized.

There are no guarantees with these and no support of their specific functionality is provided. However, if the video output is wrong then it’s worth trying these.

🏙 Thumbnails

Embeds for YouTube also has the ability to return a thumbnail of a video (sorry, this doesn’t work with playlists).

To use the shortcode method, insert [youtube_thumb]id[/youtube_thumb] into a post or page to create a thumbnail of the relevant video ID which, once clicked, will open up the appropriate YouTube page.

You can specify a number of parameters…

  • alt – specify some ALT text for the thumbnail image
  • rel – specify a REL override, e.g. rel=”nofollow”
  • target – specify a TARGET override, e.g. target=”_blank”
  • width – this specifies the width of the thumbnail image
  • height – this specifies the height of the thumbnail image
  • nolink – if set to true, will output the thumbnail without a link to the YouTube video, allowing you to add your own
  • version – which version of the thumbnail to use. This can be default (120×90), medium (320×180), high (480×360), standard (640×480) or maxres
  • version – which version of the thumbnail to use. This can be default (120×90), medium (320×180), high (480×360), standard (640×480) or maxres

e.g. [youtube_thumb target="_blank" alt="Demo video"]id[/youtube_thumb]

This overrides the TARGET and ALT elements of the thumbnail.

🗜 Shortened URL

You may return a short URL for any YouTube video by simply inserting [youtube_url id=xx] anywhere within a post. xx is the ID of the video.

ℹ️ Video Information

The shortcode of vinfo can be used to output useful video information. Simple pass the video ID using the parameter of id and then add any text between the opening and closing shortcode. If this text contains any of the following tags then they will be replaced with the relevant video information…

  • %title% – the title of the video
  • %description% – the video description
  • %url% – a link to the video on YouTube
  • %shorturl% – a shorturl of the video
  • %thumb_default% – URL of a thumbnail image 120×90 pixels in size
  • %thumb_medium% – URL of a thumbnail image 320×180 pixels in size
  • %thumb_high% – URL of a thumbnail image 480×360 pixels in size
  • %thumb_standard% – URL of a thumbnail image 640×480 pixels in size
  • %thumb_maxres% – URL of a thumbnail image the biggest it can be, based on the original video size

These tags can be included in URLs as well. For example, if you added the following in the HTML view…

`[vinfo id=”Z_sCoHGIpU0″]

DomainExposuresHeadersLast Checked
l*d*f*u*a*t*.com (WP 6.9.4) F 2026-04-28 09:51:52
r*t*l*u*n*e*l*.com F 2026-04-28 09:30:27
i*s*a*a*i*n*s*r*e.com (WP 6.1.10) ⚠️ F 2026-04-28 09:08:52
n*u*m*d*e*p*r*n*r.com (WP 6.9.4) F 2026-04-28 09:06:25
n*u*m*d*e*2*.com (WP 6.9.4) F 2026-04-28 09:06:25
t*e*i*m*m*t*o*o*i*.com (WP 6.9.4) F 2026-04-28 08:31:28
f*r*s*e*k.com (WP 6.9.4) F 2026-04-28 07:26:14
g*e*t*l*c*t*w*r*.co.il (WP 6.9.4) D 2026-04-28 06:08:04
g*e*n*i*e*n*t*r*l*e*l*h.com F 2026-04-28 05:54:43
m*y*a*.fr (WP 4.5.32) ⚠️ C 2026-04-28 05:28:47
t*e*t*e*e*b*l*e*s.com (WP 6.9.4) F 2026-04-28 05:20:12
m*l*s*o*e*t*d*o*.com (WP 6.9.4) F 2026-04-28 05:19:19
n*t*p*t.com F 2026-04-28 04:50:56
t*e*t*r*3*.com F 2026-04-28 04:50:27
f*r*e*a*i*y*f*i*e.com F 2026-04-28 04:07:17
t*e*a*t*a*a*t*w*m*n.com (WP 6.9.4) F 2026-04-28 04:06:22
c*-*p.antiochcollege.edu F 2026-04-28 03:40:40
v*h*e*r*b*t*i.com (WP 6.7.2) F 2026-04-28 03:38:13
g*e*n*i*e*y*h*m*s*l*a*y.com (WP 6.9.4) F 2026-04-28 03:13:40
s*n*r*p*a*a.net (WP 6.9.4) F 2026-04-28 02:57:51
p*e*e*a*h.com (WP 6.9.4) F 2026-04-28 02:56:38
a*t*n*l*d*r*.com F 2026-04-28 02:51:09
l*c*b*z*d*a*f*e*o*a*c*a.com (WP 6.9.4) F 2026-04-28 02:50:27
c*r*s*i*n*o*i*y.com (WP 6.7.2) F 2026-04-28 02:40:12
b*g*t*l*p*s*p*r*y.com F 2026-04-28 02:19:40
b*g*t*l*.com F 2026-04-28 02:19:40
m*r*i*e*n*r.org (WP 6.9.4) F 2026-04-28 02:01:23
m*l*h*g*g*a*i*j*u*i*s*.com F 2026-04-28 01:36:26
i*s*g*t*r*n*s.com (WP 6.9.4) F 2026-04-28 01:27:50
r*n*i*g*a*p*v*y.com (WP 6.9.4) F 2026-04-28 00:45:03
n*s*p*a*.com (WP 6.9.4) F 2026-04-28 00:13:29
b*g*s*a*d*g*l*t*.com F 2026-04-27 23:18:51
a*s*e*.com.au F 2026-04-27 23:02:03
c*r*s*c*r*a*.com (WP 6.9.4) F 2026-04-27 22:31:30
j*g*m*s.de (WP 6.9.4) F 2026-04-27 22:17:52
n*r*s*o*t*a*a*e*y.com (WP 6.9.4) B 2026-04-27 22:06:56
n*t*o*a*a*t*e*a*t.com (WP 6.8.5) F 2026-04-27 21:36:41
v*d*o*l*b.at (WP 6.8.5) F 2026-04-27 21:24:25
g*u*m*t*c*u*s.de (WP 6.9.4) F 2026-04-27 21:18:21
i*r*a*h*i*i*g.com D 2026-04-27 20:42:39
m*r*n*.gov.ph (WP 4.9.26) ⚠️ A 2026-04-27 20:28:49
b*o*.temeculawines.org (WP 6.9.4) F 2026-04-27 20:20:15
i*n*s*n*r*i*.es (WP 6.6.5) F 2026-04-27 20:13:41
v*r*e*r*u*f*l*.org B 2026-04-27 20:12:40
w*y*a*e*s.org (WP 5.6.1) ⚠️ F 2026-04-27 20:08:40
d*p*f*i*.com F 2026-04-27 19:55:34
p*m*z*n*e.com (WP 5.3.21) ⚠️ F 2026-04-27 19:50:15
c*o*u*c*t*a*e.com (WP 6.9.4) F 2026-04-27 19:40:45
p*i*o*1*y*n*.com (WP 6.9.4) F 2026-04-27 19:14:49
b*g*i*l*e*d*.com (WP 6.9.4) F 2026-04-27 19:10:50
c*o*a*e*o*p*l*h*l*n.com (WP 6.9.4) F 2026-04-27 18:54:29
s*n*i*a*s*a*a*i*e.be (WP 6.9.4) F 2026-04-27 18:52:57
s*4*c*.jsi.com A 2026-04-27 18:11:17
m*k*-*a*n*e*s.com F 2026-04-27 17:48:22
g*e*t*a*t*a*e*c*p*n*t*r*.com F 2026-04-27 17:42:42
p*a*w.com (WP 6.6.5) D 2026-04-27 17:10:37
p*i*i*l*h.com (WP 6.7.5) F 2026-04-27 16:48:04
h*p*r.bk.ooo (WP 5.2.2) ⚠️ F 2026-04-27 16:39:13
b*e*p*n*a*o.com F 2026-04-27 16:37:42
t*e*a*t*i*.com (WP 4.9.29) ⚠️ F 2026-04-27 16:33:16
t*e*a*t*e*o*m*t*o*u*.com (WP 6.9.4) C 2026-04-27 16:29:20
f*n*a*i*n*p*s.org F 2026-04-27 16:22:26
p*o*a*u.net F 2026-04-27 16:16:53
r*g*y*r*p*p.com F 2026-04-27 16:11:53
f*n*a*i*n*e*o*i*d*c*i*e.com F 2026-04-27 16:01:56
s*n*.org (WP 6.9.4) D 2026-04-27 15:58:11
k*c*l*b*r.net (WP 6.9.4) F 2026-04-27 15:56:40
p*i*a*a*i*a*.com F 2026-04-27 15:53:52
o*l*n*.torontofilmschool.ca F 2026-04-27 15:07:14
a*c*s*t*e*o*e.org A 2026-04-27 13:53:32
m*s*i*a*w*y.com (WP 5.4.19) ⚠️ F 2026-04-27 13:36:33
e*t*p*a*n*n*.wpengine.com F 2026-04-27 13:32:10
p*a*k*r.com (WP 6.9.4) F 2026-04-27 13:20:43
c*o*o*a*e*n*v*r*i*y*n*i*e.com D 2026-04-27 13:02:26
c*o*o*a*e*p*r*l*c*a.com (WP 6.4.8) ⚠️ F 2026-04-27 13:02:25
g*a*w*l*m*s*c.com (WP 6.9.4) F 2026-04-27 12:39:24
t*e*e*s*o*e*u*.com (WP 4.2.38) ⚠️ F 2026-04-27 12:36:13
h*l*i*g*e*i*r*o*b*e*a*d.info F 2026-04-27 12:30:04
a*d*n*r*k*e*.com (WP 6.9.4) F 2026-04-27 11:48:45
t*e*b*s*-*u*p*e*e*t*.com F 2026-04-27 11:48:05
i*n*r*i*e*s.com F 2026-04-27 11:38:52
f*g*o*n*e*s.com (WP 6.9.4) 🔓 F 2026-04-27 11:28:12
i*n*r*a*a*c*n*.com F 2026-04-27 10:48:39
m*f*t*e*b*o*.com A 2026-04-27 10:27:40
a*d*o*e*h*v.com (WP 6.9.4) F 2026-04-27 10:05:44
f*c*s*d*r*d*s.com F 2026-04-27 09:35:49
b*l*u*g*a*a*e*i*-*m*r*s*n*a*.de F 2026-04-27 09:20:19
r*v*a*t*s.com (WP 6.9.4) F 2026-04-27 09:05:05
t*e*a*a*e*e*c*p*n*t*r*c*n*e*.com F 2026-04-27 08:56:04
d*s*g*l*.de (WP 6.9.4) F 2026-04-27 08:27:35
c*i*o*r*c*o*s*a*l*g*o*e.com F 2026-04-27 07:52:42
n*d*.in (WP 6.9.4) F 2026-04-27 07:50:41
v*b*a*t*c.com F 2026-04-27 07:38:47
p*d.pages.ist.ac.at C 2026-04-27 07:38:37
b*s*c*a*.com (WP 6.9.4) F 2026-04-27 07:21:06
f*g*a*i*y.com (WP 6.9.4) F 2026-04-27 07:13:54
s*e*v*.no F 2026-04-27 06:40:35
g*a*h*c*o*e*s*r*e.com (WP 6.6.5) F 2026-04-27 06:36:15
f*u*l*m*i.com (WP 6.9.4) D 2026-04-27 06:32:46
g*a*u*a*n*f*a*l*s.com F 2026-04-27 05:17:27

Top 50 Plugins

Plugin Count
elementor 2,445,231
contact-form-7 2,220,648
elementor-pro 1,379,303
woocommerce 1,143,781
revslider 827,215
js_composer 544,092
jetpack 487,323
wp-rocket 398,176
essential-addons-for-elementor-lite 370,785
header-footer-elementor 313,894
gutenberg-core 296,525
elementskit-lite 293,768
gravityforms 290,665
instagram-feed 283,026
google-analytics-for-wordpress 279,675
complianz-gdpr 275,213
google-site-kit 272,661
cookie-law-info 268,923
sitepress-multilingual-cms 240,854
bluehost-wordpress-plugin 225,598
wpforms-lite 217,902
astra-sites 210,379
litespeed-cache 192,054
gtranslate 165,117
gutenberg 161,373
cookie-notice 157,748
coblocks 155,492
the-events-calendar 140,489
popup-maker 132,457
astra-addon 120,870
bb-plugin 119,992
premium-addons-for-elementor 119,619
LayerSlider 117,351
mailchimp-for-wp 116,139
wp-smushit 115,765
tablepress 113,804
creame-whatsapp-me 105,288
duracelltomi-google-tag-manager 104,768
woocommerce-gateway-stripe 101,920
cleantalk-spam-protect 101,079
pro-elements 100,842
custom-fonts 100,795
akismet 99,711
click-to-chat-for-whatsapp 98,839
honeypot 98,360
smart-slider-3 96,900
megamenu 96,800
fusion-builder 95,419
pixelyoursite 94,312
formidable 91,967

Top 50 Themes

Theme Count
hello-elementor 791,754
Divi 651,874
astra 638,423
pub 198,997
generatepress 148,539
flatsome 148,049
Avada 145,070
h4 118,235
oceanwp 108,498
kadence 96,892
enfold 84,042
salient 81,017
bb-theme 76,055
twentytwentyfour 74,028
blocksy 70,940
twentytwentyfive 69,005
cocoon-master 68,877
betheme 66,038
twentyseventeen 65,444
dt-the7 54,654
woodmart 52,853
neve 47,768
twentytwentyone 41,438
bridge 40,735
Avada-Child-Theme 38,554
swell 36,756
gox 36,222
twentytwenty 36,033
lightning 35,692
twentytwentythree 33,905
bricks 29,400
Impreza 29,371
Newspaper 26,799
twentytwentytwo 26,445
epik-redesign 23,066
pro 21,916
storefront 21,852
extendable 21,847
uncode 21,553
twentysixteen 21,239
yith-wonder 20,232
sydney 19,913
themify-ultra 18,862
Total 17,795
twentyfifteen 16,937
porto 16,182
hestia 15,701
yootheme 14,811
thrive-theme 14,743
twentynineteen 14,661