Extra images
-
Hello. Thanks for nice plugin. Thank you dear developer.
Wordpress produces photos as follows, they appear in the source.
<p><figure id="attachment_42" aria-describedby="caption-attachment-42" style="width: 300px" class="wp-caption alignnone"><img loading="lazy" src=".../wp-content/uploads/2022/10/photo-4333517-300x200.jpeg" alt="foto?raf denemesi 7" width="300" height="200" class="size-medium wp-image-42" srcset="../wp-content/uploads/2022/10/photo-4333517-300x200.jpeg 300w, ../wp-content/uploads/2022/10/photo-4333517-1024x683.jpeg 1024w,../wp-content/uploads/2022/10/photo-4333517-768x512.jpeg 768w, ../wp-content/uploads/2022/10/photo-4333517-1536x1024.jpeg 1536w, ../wp-content/uploads/2022/10/photo-4333517-2048x1365.jpeg 2048w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-42" class="wp-caption-text">foto?raf denemesi 7</figcaption></figure> foto?raf denemesi 7</p>
However, this plugin writes the largest image, which is not visible on the front page, and ends with “scaled”, to the sitemap file.
<url> <loc>.../genel/fotograf-denemesi-7-41/</loc> <lastmod>2022-10-29</lastmod><changefreq>monthly</changefreq> <image:image> <image:loc>../wp-content/uploads/2022/10/photo-4333517-scaled.jpeg</image:loc> </image:image></url>
How can we add automatically produced 300px, 1024px, 768px, 1536px, 2048px photos?
Again, many users, including me, use <picture> element codes in addition to the above wp automatic photo html code. Is it possible to make the photos mentioned here appear on the sitemap page?
Thanks in advance, have a nice day.
- The topic ‘Extra images’ is closed to new replies.