Hello,
Thank you for contacting Rank Math today.
You can use the following filter to add extra URLs to the sitemap but you will need to get in touch with the guys from Ecwid and ask how they genererate the links so that you can use the same logic within this filter:
/**
Filter to add extra URLs to the XML sitemap by type.
*
Only runs for the first page, not on all.
*
@param string $content String content to add, defaults to empty.
*/
add_action( 'rank_math/sitemap/{$type}_content', function() {
return ' https://rankmath.com/some-custom-url/
2020-02-20T20:20:20+00:00
';
});
Looking forward to helping you. Thank you.
​​​​​​
Thanks Michael. I will pass that on to Ecwid and see what can be done. Will be great to get it working.
Hi Michael,
Do let us know if any input is needed from our end.
Thank you Todd, I will certainly do that 🙂
Hi guys, I see that Ecwid has released a new update today and in the changelog they have included RankMath fixes, so just wanted to let you know:
6.9.2 – Apr 06, 2020
Integration with the RankMath SEO plugin. The “RankMath” plugin is a tool to set SEO meta tags on site pages and to generate a sitemaps. It conflicted with the Ecwid SEO functions: SEO tags and sitemaps generated by Ecwid did not work well with those generated by RankMath. It’s now fixed so if you use the plugin, everything should work fine and Google will index your products pages properly.
Improved compatibility with WPBakery editor and UrbanGo Listing theme.
Improvements for the “Import from WooCommerce” tool.
Hi Michael,
This is great news, thank you for giving the community a heads-up 🙂
Please let us know if we can help further. Thank you.