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

Plugin: related-youtube-videos (Used by 47 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
b*z*n*o*a*a*o.net A 2026-06-13 20:01:39
e*p*e*a*i*p*e*a*a*r*d.es (WP 7.0) F 2026-06-13 17:36:48
q*i*.ru F 2026-06-05 15:46:47
o*l*n*g*e*s*i*.de F 2026-06-04 00:23:20
p*e*l*m*n.com (WP 4.8.25) ⚠️ F 2026-06-02 22:06:58
i*m*a*o*t*f.com (WP 7.0) F 2026-06-02 10:29:02
t*e*a*g*t*a*.com (WP 4.9.26) ⚠️ F 2026-06-01 02:30:06
a*r.lu (WP 6.9.4) F 2026-05-30 21:09:11
s*c*r*.t*e*r*t*a*o*t*a*c*r.com (WP 6.9.4) D 2026-05-30 11:18:50
g*e*n*n*o*s*u*p*y.com A 2026-05-30 06:30:50
i*t*r*e*-*a*k*t*n*c*n*u*t*n*.com F 2026-05-29 13:52:26
s*u*e*t*a*a*n.com (WP 6.9.4) F 2026-05-29 09:18:27
k*u*e*b*s*e*l*n.de (WP 6.9.4) F 2026-05-28 22:48:23
e*i.it (WP 6.9.4) 🔓 F 2026-05-28 17:44:49
c*l*u*u*c*a*h*s.com F 2026-05-28 11:10:16
w*l*a*a*e*.com F 2026-05-26 16:29:38
w*r*h*p*r*h*v*.com F 2026-05-23 22:02:02
g*u*b*l*i*n.de (WP 6.1.10) ⚠️ F 2026-05-21 13:52:01
t*u*t*y*e*h*n*c.com C 2026-05-21 07:30:05
e*s*i*e.com (WP 6.9.4) F 2026-05-19 15:59:06
e*h*t*l*b*o*.w*c*m*t*g*n*.com D 2026-05-19 07:34:05
m*x*m*s*n*e*n*t*a*k*t*n*.com F 2026-05-19 05:39:56
n*y*l*n*.com (WP 6.9.4) F 2026-05-19 00:17:07
n*t*i*g*.com F 2026-05-18 18:37:48
m*r*h*d*n*o*.w*e*g*n*p*w*r*d.com F 2026-05-18 10:01:52
s*o*.p*o*i*o*n*e.de (WP 5.8.7) ⚠️ F 2026-05-18 00:44:22
m*s*a*e*r*a*t*a*.com (WP 6.5.5) F 2026-05-17 13:47:07
e*.u*o*y*p*o*e.com (WP 6.9.4) F 2026-05-16 23:00:08
s*a*s*o*s*e*k*r*.com D 2026-05-16 04:11:27
a*d*m*d*a.com (WP 6.9.4) F 2026-05-14 06:01:43
s*n*x*i*g.com (WP 6.5.8) F 2026-05-14 02:39:07
t*e*r*s*n*a*i*n*c*o*l.com F 2026-05-13 20:36:19
a*o*a.p*r*i*o*e*a*u*t*r*.org F 2026-05-13 12:48:44
c*e*d*o*e.com (WP 6.9.4) F 2026-05-13 11:20:18
n*n*t*m*l*s*r*j*c*.com F 2026-05-13 11:05:28
t*p*e*g*.com F 2026-05-13 07:35:37
j*w*i.de F 2026-05-12 17:41:49
c*u*t*y*u*i*b*o*i*g*g*n*y.com D 2026-05-11 10:23:22
b*n*e*e*j*n.com (WP 4.7.29) ⚠️ F 2026-05-10 03:05:28
e*e*w*i*s*z.com F 2026-05-09 05:16:30
s*a*t*e*t*l*t*s*e*k*r*.com D 2026-05-08 19:06:39
a*r*r*s*p*o*u*t*r*v*e*s*o*e.com (WP 6.9.4) F 2026-05-08 16:14:58
m*i*a*i*n*a*a.com (WP 6.9.4) F 2026-05-08 14:18:21
e*h*t*l*b*o*.com D 2026-05-08 06:42:36
l*p*n*y*v*s*r*-*m*e*i*l*.com F 2026-05-07 20:35:14
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

Top 50 Plugins

Plugin Count
elementor 1,871,798
contact-form-7 1,843,757
elementor-pro 1,089,069
woocommerce 844,696
revslider 639,662
jetpack 479,567
js_composer 448,539
wp-rocket 348,467
gravityforms 319,183
essential-addons-for-elementor-lite 308,857
complianz-gdpr 269,885
cookie-law-info 242,412
instagram-feed 236,168
google-site-kit 229,894
sitepress-multilingual-cms 229,551
google-analytics-for-wordpress 220,823
elementskit-lite 218,220
header-footer-elementor 217,546
bluehost-wordpress-plugin 192,443
gutenberg 166,637
gutenberg-core 165,665
cookie-notice 160,699
litespeed-cache 141,534
the-events-calendar 138,351
wpforms-lite 133,380
gtranslate 132,950
astra-sites 122,544
popup-maker 120,223
tablepress 116,167
woocommerce-payments 115,683
coblocks 103,314
honeypot 101,860
astra-addon 98,527
duracelltomi-google-tag-manager 97,444
wp-smushit 96,931
all-in-one-seo-pack 96,457
LayerSlider 94,847
bb-plugin 93,024
megamenu 90,727
premium-addons-for-elementor 90,061
akismet 88,214
mailchimp-for-wp 86,570
cleantalk-spam-protect 85,977
woocommerce-gateway-stripe 85,609
ml-slider 84,790
borlabs-cookie 83,812
wp-pagenavi 83,021
fusion-builder 82,576
ewww-image-optimizer 81,808
smart-slider-3 81,041

Top 50 Themes

Theme Count
hello-elementor 640,309
Divi 529,689
astra 437,986
flatsome 148,443
generatepress 131,099
Avada 128,785
pub 114,103
twentytwentyfour 106,852
oceanwp 86,643
sydney 83,651
kadence 82,259
enfold 74,679
salient 68,839
twentyseventeen 58,694
h4 58,480
bb-theme 56,551
betheme 54,060
blocksy 53,224
cocoon-master 52,797
dt-the7 47,878
twentytwentyfive 46,161
neve 41,147
Avada-Child-Theme 38,904
woodmart 34,501
gox 34,416
bridge 33,943
twentytwentyone 33,279
lightning 32,479
twentytwenty 31,299
swell 29,142
Impreza 27,659
voxel 27,638
bricks 26,999
sinatra 25,694
twentytwentythree 24,914
Newspaper 24,851
kubio 22,316
twentytwentytwo 20,511
uncode 19,918
epik-redesign 19,293
twentysixteen 19,247
storefront 18,561
pro 18,224
Total 15,311
extendable 15,060
yith-wonder 14,138
hello-theme-child-master 13,934
yootheme 13,518
themify-ultra 13,500
hestia 13,467