Google XML Sitemap for Videos - Version 1.0.2

Version Description

Download this release

Release Info

Developer labnol
Plugin Icon wp plugin Google XML Sitemap for Videos
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. readme.txt +3 -3
  2. video-sitemap.php +6 -6
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Plugin Name ===
2
  Contributors: labnol
3
  Tags: youtube, xml sitemaps, google sitemaps, bing, videos, seo, search engines, sitemap
4
- Requires at least: 3.0.0
5
  Tested up to: 3.0
6
- Stable tag: 1.0.1
7
 
8
  This plugin will help WordPress publishers generate Google XML Sitemaps for YouTube videos.
9
 
@@ -15,7 +15,7 @@ The Video Sitemap plugin will generate an XML Sitemap for your WordPress blog us
15
 
16
  Your Video Sitemap will includes web pages which embed videos from YouTube or which links to videos on YouTube. If a YouTube video that you have in your blog has been removed from YouTube, the record in the Sitemap file will be ignored by Googlebot.
17
 
18
- *Related links:*
19
 
20
  You can follow [Digital Inspiration](http://www.labnol.org/ "Technology Blog") on [Twitter](http://twitter.com/labnol) and [Facebook](http://www.facebook.com/digital.inspiration).
21
 
1
  === Plugin Name ===
2
  Contributors: labnol
3
  Tags: youtube, xml sitemaps, google sitemaps, bing, videos, seo, search engines, sitemap
4
+ Requires at least: 2.9.2
5
  Tested up to: 3.0
6
+ Stable tag: 1.0.2
7
 
8
  This plugin will help WordPress publishers generate Google XML Sitemaps for YouTube videos.
9
 
15
 
16
  Your Video Sitemap will includes web pages which embed videos from YouTube or which links to videos on YouTube. If a YouTube video that you have in your blog has been removed from YouTube, the record in the Sitemap file will be ignored by Googlebot.
17
 
18
+ **Related links:**
19
 
20
  You can follow [Digital Inspiration](http://www.labnol.org/ "Technology Blog") on [Twitter](http://twitter.com/labnol) and [Facebook](http://www.facebook.com/digital.inspiration).
21
 
video-sitemap.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
- Plugin Name: XML Video Sitemap for Google
4
- Plugin URI: http://www.labnol.org/
5
- Description: This plugin will generate a XML Video Sitemap for your WordPress blog using all the YouTube videos that you may have embedded in your blog posts.
6
  Author: Amit Agarwal
7
- Version: 1.0
8
- Author URI: http://www.labnol.org/about/
9
  */
10
 
11
 
@@ -93,7 +93,7 @@ function video_sitemap_loop () {
93
  $xml .= " <loc>$permalink</loc>\n";
94
  $xml .= " <video:video>\n";
95
  $xml .= " <video:player_loc allow_embed=\"yes\" autoplay=\"autoplay=1\">http://www.youtube.com/v/$id</video:player_loc>\n";
96
- $xml .= " <video:thumbnail_loc>http://i.ytimg.com/vi/$id/0.jpg</video:thumbnail_loc>\n";
97
  $xml .= " <video:title>" . htmlspecialchars($post->post_title) . "</video:title>\n";
98
  $xml .= " <video:description>" . htmlspecialchars($excerpt) . "</video:description>\n";
99
 
1
  <?php
2
  /*
3
+ Plugin Name: XML Video Sitemap Generator
4
+ Plugin URI: http://www.labnol.org/software/xml-video-sitemaps-for-google/14085/
5
+ Description: This plugin will generate a XML Video Sitemap for your WordPress blog using all the YouTube videos that you may have embedded in your blog posts. Please visit the <a href="tools.php?page=video-sitemap-generate-page">sitemap generator page</a>.
6
  Author: Amit Agarwal
7
+ Version: 1.0.1
8
+ Author URI: http://www.labnol.org/
9
  */
10
 
11
 
93
  $xml .= " <loc>$permalink</loc>\n";
94
  $xml .= " <video:video>\n";
95
  $xml .= " <video:player_loc allow_embed=\"yes\" autoplay=\"autoplay=1\">http://www.youtube.com/v/$id</video:player_loc>\n";
96
+ $xml .= " <video:thumbnail_loc>http://i.ytimg.com/vi/$id/2.jpg</video:thumbnail_loc>\n";
97
  $xml .= " <video:title>" . htmlspecialchars($post->post_title) . "</video:title>\n";
98
  $xml .= " <video:description>" . htmlspecialchars($excerpt) . "</video:description>\n";
99