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

Plugin: related-youtube-videos (Used by 36 domains)

Related YouTube Videos

👤 Chris 📦 v1.9.9 🔗 Plugin Homepage

Related YouTube Videos is a free WordPress plugin that embeds a number of, well, YouTube videos that are related to your content. The list is put together by using the YouTube search API. And you can specify the relation between the videos and your content by:

  • the title of your current post, page or custom post type.
  • the tags of your current post, page or custom post type.
  • the categories of your current post, page or custom post type.
  • any keywords you specify.

Also, this plugin offers you two ways to embed related videos:

  1. by using the shortcode [relatedYouTubeVideos] somewhere in your post/page content.
  2. by using the WordPress widget “Related YouTube Videos” in any of your widget areas (multiple instances are possible).

Disclaimer / Important

As of April 2015 the YouTube API can only be accessed when you have a valid key for the data API. Also, the number of free requests per day is limited!

There is a nice and short video tutorial (https://www.youtube.com/watch?v=zOYW7FO9rzA) on how to get such an API key. But it’s up to you to make sure your stay within the free limit or keep track of the costs when you need more than that!

Please read Youtube and Google’s terms and conditions for more details.

The Shortcode

I’m only going to explain the options/paramters for the shortcode but they work exactly the same for the widget, of course.

You can put the shortcode [relatedYouTubeVideos] anywhere you want inside the content of a page, post, or custom post type – as long as your WordPress theme is supporting shortcodes.

You can use the following options/parameters/attributes:

Appearance

  • id – You can specify the HTML id attribute for the wrapping
      element.
    • class – You can specify an additional HTML class name for the wrapping
        element
      • width – Width of the HTML video object
      • height – Height of the HTML video object
      • preview – “true” will only display the preview image and only load the video (via Javascript!) when this image has been clicked.
      • showVideoTitle – “true” if you want to show the video title right below the video itself. Can be styled via CSS class .title
      • showVideoDescription – “true” if you want to show the video description below the video, respectively, when the video title is displayed right below the title. Can be styled via CSS class .description
      • autoplay – “true” if you want the video to automatically start playing when ready. This will obviously not work in preview mode!!
      • exclude – Comma separated list of post/page IDs where no videos shall be displayed.

      Configuration

      • max – Number of videos (or search results) that will be returned. Can be any number between 1 and 10!
      • random – Select MAX number of videos out of RANDOM number of videos.
      • offset – START and OFFSET are interchangably the same and just other words for the same option.

      YouTube

      • relation – Specify the kind of relation that shall be used for searching YouTube. Can either be ‘postTitle’, ‘postTags’, ‘postCategories’, or ‘keywords’ (in which case the attribute ‘terms’ will be used for the YouTube search).
      • terms – Search YouTube for these terms – no separating commas required.
      • exact – Set to ‘true’ will (try to) search for the exact phrase.
      • orderBy – Can either be ‘published’, ‘rating’, ‘viewCount’, (default) ‘relevance’.
      • lang – {2-letter-language-code} will show videos in that language.
      • region – {2-letter-country-code} will show videos that are actually viewable in that region/country.
      • author – Only show videos from a given YouTube User(name) .
      • filter – Add additional keywords or filtering search parameters. Those will always be added even when the relation is set to post title, tags, or so. You can also manually add post tags by adding ‘+postTags’, categories by adding ‘+postCategories’, the post title by adding ‘+postTitle’, post meta data by adding ‘+postMeta:key’ to the filter.
      • viewRelated – set to “no” or “false” will not show more related videos at the end of a clip.

      I recommend always using the attributes ‘relation’, ‘max’, and if the relation shall be ‘keywords’ the ‘terms’ attribute. Depending on your design you might also set a custom width and height for the videos so they fit in properly.

      Shortcode Example 1: [relatedYouTubeVideos relation=”postTags” max=”3″] Will show three videos coming back from the search YouTube for (all!) the tags you have assigned to this post or page.

      Shortcode Example 2: [relatedYouTubeVideos relation=”keywords” terms=”monty python” max=”5″] Will show five Monty Python videos from YouTube.

      Shortcode Example 3: [relatedYouTubeVideos relation=”keywords” terms=”real madrid” exact=”true” max=”2″] Will search for the exact phrase “Real Madrid” and (hopefully) not just anything “real”.

      Shortcode Example 4: [relatedYouTubeVideos relation=”postTitle” max=”1″ orderBy=”viewCount” start=”1″] Will show the second most popular video (the first being skipped) relating to your post or page title.

      Shortcode Example 5: [relatedYouTubeVideos relation=”keywords” terms=”monthy python” max=”1″ showVideoTitle=”true” showVideoDescription=”true”] Will show a Monty Python video, followed by the video title, followed by the video, followed by the video description.

      Shortcode Example 6: [relatedYouTubeVideos relation=”keywords” terms=”monthy python” max=”1″ preview=”true”] Will show the thumbnail of a Monty Python video and load + play the video only when it’s being clicked.

      Shortcode Example 7: [relatedYouTubeVideos relation=”postTitle” filter=”intitle:official -intitle:cover” max=”1″ preview=”true”] If the post title is about a music video (band and song title, for example) this will only show the official music video.

      Shortcode Example 8: [relatedYouTubeVideos relation=”postTitle” filter=”+postCategories” max=”1″ preview=”true”] Will use the post title and a list of all categories the post is in to search YT.

      The Widget

      The widget almost works the same way. Or at least it has the same options for configuring the video request. If you log into your WordPress backend and go to the “Appearance > Widget” menu (given that your theme supports widgets) you can drag&drop a widget instance into the widget area of your choice.

      The relatedYouTubeVideos widget allows multiple instances. So you can put as many widgets as you like into as many widget areas as you like.

      The difference between the widget and the shortcode is not in terms of functionality but usually in the context they reside. Widgets usually go into sidebars or footers and alike and the same widget usually shows up for many, if not all pages, just the same. Shortcodes are placed inside the actual content and therefore will only show up when the page or post where they’re put is shown.

      There is one functionality that only applies to widgets: In the options field “Hide on” you can set a list of comma separated, numerical post IDs on which the widget will not show up. This way you can easily exlude the widget on certain post. You can also use PAGE ids for that matter, since under the hood WordPress manages all “post type” IDs the same.

      Randomize Results

      The same keywords (or post title/tags) will ususally return the same video(s) for a period of time. Basically, that’s up to YouTube but in can take days, weeks or even months until fresh videos will show up.

      When you set a numeric value for the RANDOM parameter/option you can get random videos from a pool of results. The MAX value plays along with the RANDOM value and both read like this: Show me {MAX} random videos out of {RANDOM} videos.

      [relatedYouTubeVideos relation=”keywords” terms=”fast cars” max=”2″ random=”10″] will actually request 10 videos from YouTube but only show 2 random ones out of that 10.

      So RANDOM will determine the size of the pool MAX videos will be chosen from.

      System Requirements

      In order to run this plugin you need the following components installed and enabled in your server and PHP environment:

      • PHP 5.1.2+
      • SimpleXML (usually is enabled by default anyways)
      • cURL (preferred) or fopen/fsockopen
      • OpenSSL + HTTPS wrapper (is only required if cURL is not available)
      • WordPress 3.0+

      In general you should not have to worry about these things since they’re included in most web hosting packages nowadays.
      But to be sure you can download and install this plugin and then check the backend page. There is a “System Requirements” section that will show you exactly if you can good to go or if there is any problem.

      In case you’re getting a “URL file-access is disabled in the server configuration” error you should make sure your PHP.ini file contains these two lines:

      allow_url_include = on

      allow_url_fopen = on

      Available Languages:

      • English
      • German
      • Serbo-Croatian – by Borisa Djuraskovic (Webhostinghub)
        Developers can also use the API class outside the plugin context, for example in a theme template file. All you have to do is include the class (if it doesn’t already exist) and create an object like this:

        /* Load the “Related YouTube Videos” API class if it does not exist yet. */
        if( !class_exists( ‘RelatedYouTubeVideos_API’ ) ) {

        $file = str_replace( ‘/’, DIRECTORY_SEPARATOR, ABSPATH ) . ‘lib’ . DIRECTORY_SEPARATOR . ‘RelatedYouTubeVidoes’ . DIRECTORY_SEPARATOR . ‘API.php’;

        if( file_exists( $file ) ) {

        include_once $file;
        

        }

        }
        /* Only continue if the API class could be loaded properly. */
        if( class_exists( ‘RelatedYouTubeVideos_API’ ) ) {

        $RytvAPI = new RelatedYouTubeVideos_API();

        /* Do your configuration */
        $data = $RytvAPI->validateConfiguration(
        array(
        ‘relation’ => ‘postTitle’,
        ‘max’ => ‘3’,
        ‘width’ => 150,
        ‘height’ => 150,
        ‘lang’ => ‘en’,
        ‘region’ => ‘de’,
        ‘class’ => ‘left center inline bg-black’,
        ‘preview’ => true
        )
        );

        /* Search YouTube. */
        $results = $RytvAPI->searchYouTube( $data );

        /* Generate the unordered HTML list of videos according to the YouTube results and your configuration. */
        $html = $RytvAPI->displayResults( $results, $data );

        echo $html; // Or do with it whatever you like 😉

        }

DomainExposuresHeadersLast Checked
p*k*o*a*v*.ru F 2026-05-03 19:29:47
u*o*y*p*o*e.com (WP 6.9.4) F 2026-05-03 13:57:47
p*e*l*m*n.com (WP 4.8.25) ⚠️ F 2026-05-01 18:32:23
b*b*s*t*i*g*a*e*c*e*.com (WP 6.9.4) F 2026-05-01 17:16:58
i*m*a*o*t*f.com (WP 6.9.4) F 2026-04-30 13:10:03
s*c*r*.t*e*r*t*a*o*t*a*c*r.com (WP 6.9.4) D 2026-04-30 09:34:47
i*t*r*e*-*a*k*t*n*c*n*u*t*n*.com F 2026-04-29 10:07:11
c*n*a*i*g*e*.com (WP 6.9.4) D 2026-04-28 20:10:22
e*i.it (WP 6.9.4) 🔓 F 2026-04-28 17:18:40
k*u*e*b*s*e*l*n.de (WP 6.9.4) F 2026-04-28 06:36:20
g*e*n*n*o*s*u*p*y.com A 2026-04-28 04:37:55
t*e*a*g*t*a*.com (WP 4.9.26) ⚠️ F 2026-04-26 19:58:26
w*l*a*a*e*.com F 2026-04-26 12:58:24
c*l*u*u*c*a*h*s.com F 2026-04-24 10:51:08
s*u*e*t*a*a*n.com (WP 6.9.4) F 2026-04-21 21:08:22
t*u*t*y*e*h*n*c.com C 2026-04-19 01:53:13
z*n*d*m*v*l*s.com (WP 6.8.5) F 2026-04-16 17:50:49
m*x*m*s*n*e*n*t*a*k*t*n*.com F 2026-04-16 16:47:40
m*s*a*e*r*a*t*a*.com (WP 6.5.5) F 2026-04-15 07:35:46
n*y*l*n*.com (WP 6.9.4) F 2026-04-14 05:48:58
n*t*i*g*.com F 2026-04-14 02:00:00
e*a*d*m*r.com (WP 6.0.11) ⚠️ F 2026-04-10 21:30:45
s*a*s*o*s*e*k*r*.com D 2026-04-10 05:00:19
n*n*t*m*l*s*r*j*c*.com F 2026-04-09 20:14:27
c*e*d*o*e.com (WP 6.9.4) F 2026-04-09 08:40:04
c*u*t*y*u*i*b*o*i*g*g*n*y.com D 2026-04-08 04:29:32
a*r*r*s*p*o*u*t*r*v*e*s*o*e.com (WP 6.9.4) F 2026-04-03 10:24:04
a*d*m*d*a.com (WP 6.9.4) F 2026-03-31 06:29:34
s*n*x*i*g.com 2025-11-10 12:46:29
s*a*t*e*t*l*t*s*e*k*r*.com 2025-11-10 09:28:13
p*o*u*t*r*v*e*-*4.com 2025-11-09 22:43:05
n*i*a*y*i*s*g.com 2025-11-09 09:36:25
m*i*a*i*n*a*a.com 2025-11-09 08:58:51
e*e*w*i*s*z.com 2025-11-07 09:37:24
e*h*t*l*b*o*.com 2025-11-07 09:22:26
b*n*e*e*j*n.com 2025-11-06 10:29:24

Top 50 Plugins

Plugin Count
elementor 2,042,226
contact-form-7 1,910,576
elementor-pro 1,164,210
woocommerce 947,969
revslider 698,969
js_composer 470,163
jetpack 467,685
wp-rocket 350,781
essential-addons-for-elementor-lite 315,823
gravityforms 268,896
header-footer-elementor 253,761
complianz-gdpr 246,928
instagram-feed 244,520
google-analytics-for-wordpress 239,596
elementskit-lite 238,462
gutenberg-core 236,283
cookie-law-info 235,991
google-site-kit 235,154
sitepress-multilingual-cms 217,744
bluehost-wordpress-plugin 207,377
wpforms-lite 170,343
astra-sites 162,891
gutenberg 157,629
litespeed-cache 150,704
cookie-notice 140,280
gtranslate 138,641
coblocks 130,241
the-events-calendar 128,499
popup-maker 121,128
astra-addon 103,285
bb-plugin 102,615
tablepress 102,610
woocommerce-payments 101,312
LayerSlider 101,239
wp-smushit 100,582
premium-addons-for-elementor 98,751
mailchimp-for-wp 96,676
duracelltomi-google-tag-manager 93,550
honeypot 92,216
cleantalk-spam-protect 90,914
akismet 90,531
woocommerce-gateway-stripe 88,997
megamenu 86,393
fusion-builder 84,420
all-in-one-seo-pack 84,296
creame-whatsapp-me 82,848
smart-slider-3 82,792
formidable 82,376
creative-mail-by-constant-contact 80,738
pixelyoursite 79,986

Top 50 Themes

Theme Count
hello-elementor 674,966
Divi 562,521
astra 515,104
pub 160,466
Avada 130,518
flatsome 127,314
generatepress 126,963
oceanwp 92,567
h4 88,883
kadence 84,415
enfold 74,423
salient 71,495
bb-theme 63,882
twentytwentyfour 63,321
twentyseventeen 58,816
cocoon-master 58,267
blocksy 58,168
betheme 56,511
twentytwentyfive 55,512
dt-the7 48,164
neve 42,007
woodmart 41,188
Avada-Child-Theme 36,660
twentytwentyone 36,349
bridge 35,585
gox 34,459
twentytwenty 32,203
lightning 31,394
swell 30,662
twentytwentythree 29,059
bricks 26,436
Impreza 26,399
Newspaper 23,771
twentytwentytwo 23,290
epik-redesign 21,413
pro 19,529
storefront 19,379
uncode 19,357
extendable 19,255
twentysixteen 19,237
sydney 17,595
yith-wonder 17,151
themify-ultra 15,660
Total 15,560
twentyfifteen 13,897
hestia 13,737
porto 13,467
twentynineteen 13,254
yootheme 13,028
thrive-theme 12,935