Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
I’ve checked the page, and it seems that it is adding the images as CSS background-image to <div>
tags.
Because of this, Rank Math is unable able to detect the presence of images on the page (since they are actually not there, just as background images) and thus is also not able to correctly add them in your sitemap.
For Rank Math to recognize the images, the images should be added using the <img>
tag.
I hope that helps.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I’ve checked with the plugin developer and he sent me some info, Ive shared them in the sensitive data section, other sitemap plugin are able to see the images, I hope I can find a solution, I’m really looking to make it working with RankMath.
I’m just adding a few info that may could helps find a solution,
I have WP-Offload plugin installed, on upload it sends the images to a AWS S3 Bucket, so I don’t keep the images in the server (and I haven’t enabled the CDN yet), could it be that the issue?
For info I’ve tried posting images with the default WP function and still doesn’t show them in the sitemap, neither the featured images of the posts.
Hello,
To make our plugin able to read and include the images in the sitemap, the gallery plugin will need to add the compatibility for Rank Math as they have done for Yoast:
Please get in touch with the support of Simply gallery plugin and ask them to add the compatibility for our plugin using the following guide: https://rankmath.com/kb/content-analysis-api/
Let us know how that goes. Looking forward to your update.
Thanks.
Thank you so much, but I don’t think it’s related to the plugin, I’ve just created a few new posts using the default WP “insert image block” and still they don’t show up in the sitemap.
I’ll share the links in the sensitive data section.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I checked and figured out that the issue is being caused by WP Offload Media Lite. When the plugin is disabled, Rank Math is able to detect all the images and include them in the sitemap. You can check that by disabling the plugin and flushing the cache of the sitemap.
Please get in touch with the support of the plugin as they will be able to help you resolve this.
Let us know how that goes. Looking forward to your update.
Thanks.
Hi again,
I’ve been doing some researches and on your blog I found this snippet, is that the one that will help adding the images url in the sitemap?
/**
* Filter to Add CDN Image URLs in the Sitemap
*
* @param string $src Image URL.
* @param object $post Post object.
*/
add_filter( 'rank_math/sitemap/xml_img_src', function( $src, $post ){
$src = str_replace( 'http://domain.com', 'https://cdn.domain.com', $src );
return $src;
}, 10, 2);
I found it in the section sitemap – 14 of this article
https://rankmath.com/kb/filters-hooks-api-developer/
Hello,
No, that filter only adds the CDN Image URLs in the Sitemap.
As my colleague mentioned in the previous reply, you should get in touch with the WP Offload Media Lite support team, they will be able to help you resolve this.
Let us know how that goes.
Thanks.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.