Hello folks, this is my first article on WordPress. I am going to release a WordPress Plugin for Generating an XML Image Sitemap. I call this Foxy Image Sitemap.
there are a few already available but they are not fool proof. Example – in this theme I do not have an image in a post, the one there is, posted as a custom key “Thumbnail” – used as a div-background which is automated and not included in the post_content so the plugin’s fail to detect it.
Eventually I had to make a plugin that could take a parameter of a custom key and generate a sitemap on it. This can also do the other way round – yes – extract the if available custom key else the regular image if not.
This also has a build in feature to work as a normal plugin generating an image sitemap for all the images of all the posts.
Its got the top-notch demarcation and parameters for complete seo. see below example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<urlset> <url> <loc>http://www.pushpinderbagga.com/an-old-punjabi-farmer/391/</loc> <image:image> <image:loc>http://www.pushpinderbagga.com/wp-content/uploads/2010/11/a-punjabi-farmer.jpg</image:loc> <image:caption>An Old Punjabi Farmer</image:caption> <image:license>http://www.pushpinderbagga.com</image:license> </image:image> </url> </urlset>
details are given in the plugin itself.
Important: For amateurs, please install this Plugin and Hit “Generate Image Sitemap” button on the Plugin page in the Tools Panel! Done!
Here is what it looks like on the build page
and here is after the sitemap is made
Live Example – See this sitemap. If you see carefully, the articles listed in the Blog/tips Category of my website do not have a Thumbnail Custom key, still they are included in the sitemap with the automated last image extracted from the article’s post content.
you can post any questions or tips in the comments section below. thanks to labnol’s plugin referencing which this code was made.
download the plugin. cheers!