Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.75k stars 885 forks source link

Sitemap should include URL to full image, not just the thumbnail #2165

Closed Haz726 closed 8 years ago

Haz726 commented 9 years ago

When an image is added to a page, there is a thumbnail that is seen on the page. When the user clicks on the thumbnail, the full image opens in the browser.

As it stands now, the sitemap includes the thumbnail image URL and not the full image URL. It would be great if the full image is included in the sitemap as well

Rarst commented 9 years ago

Could you please elaborate how precisely you are using thumbnails?

Do you mean you manually insert thumbnail image into content or something?

Haz726 commented 9 years ago

Thanks so much for getting back to me. OUTSTANDING plugin, btw. The sitemap includes the URL to the thumbnail that appears on my pages. The thumbnail is the small 145 x 145 image. I would like the sitemap to include the URL to the thumbnail, the larger size image AND the featured image. The images on my site are inserted in my pages using the featured image, the add media tool, and WP Lightbox Ultimate. Compare Yoast Sitemap http://www.aquariumcarebasics.com/page-sitemap.xml to this Images XML Sitemap http://www.aquariumcarebasics.com/ACB-sitemap-images.xml In Yoast Sitemap the URLs included are ONLY the page URLs and the image thumbnail URLs. In Images XML Sitemap, the URLS are the page URLS, the thumb URLS, the underlying image URLs and the Featured Image URLs. submitting the Images XML Sitemap to Google Webmaster Tools includes everything. And it gives me an accurate accounting of how many pages and images are submitted and indexed. In my case 60 pages are submitted and 58 are indexed, and 1640 images are submitted and 1486 are indexed. A Google search for "bamboo shrimp" includes so many of my 720 x 405 images, and I get a lot of traffic from my pictures. Its important for Google to be lead to all images on a page, not just the 145 x 145 thumbnails, if that makes sense. I hope I explained this properly, and I hope it makes sense. Thanks again for the great plugin. Other than this issue, Yoast it wonderful.

Rarst commented 9 years ago

What kind of markup/shortcode does that lightbox plugin produce in post content?

Haz726 commented 9 years ago

I'm not sure how the plugin works internally, but for images inserted with the media tool, this is what I use:

[caption id="attachment_717" align="alignleft" width="150"]<a title="A Bamboo Shrimp with feeding fans open near a live plant." href="http://www.aquariumcarebasics.com/images/bamboo-shrimp-planted-aquarium.jpg" rel="wp_lightbox_prettyPhoto"><img class="wp-image-717 size-thumbnail" src="http://www.aquariumcarebasics.com/images/bamboo-shrimp-planted-aquarium-150x84.jpg" alt="A Bamboo Shrimp In A Planted Aquarium" width="150" height="84" /></a> Bamboo Shrimp aka Wood Shrimp[/caption]

And for images in my galleries, this is what I use:

<a title="A Bamboo Shrimp positions itself in the current and opens its fans." href="http://www.aquariumcarebasics.com/images/bamboo-shrimp-opening-fans.jpg" rel="wp_lightbox_prettyPhoto"><img class="alignleft" src="http://www.aquariumcarebasics.com/images/bamboo-shrimp-opening-fans-145.jpg" alt="Bamboo Shrimp Opening Fans" width="145" height="145" /></a>

Not sure how the featured images works internally, but its standard WordPress. Again, thanks for getting back to me on this!

Rarst commented 9 years ago

Ok, I will look into this, but not immediately. :) I will probably have to rebuild one of your posts in my development install and see how precisely that is getting processed.

Haz726 commented 9 years ago

Thanks for looking into this. It will really make the Yoast sitemap a better product if it can get sorted out, especially if it includes "featured image" the title= and alt= information. If you need to log into my WP account to check into this from the backend, let me know and I will provide it to you.