Include products in sitemap

#33766
  • Resolved Michael Martin
    Rank Math free

    Hi all,

    I am busy working on the other issue of duplicate content with Ecwid, and am also looking at how to include the Ecwid shop product info in the sitemap. There is an option to include products but from your documentation it says this only works with WooCommerce (as per the other code you sent on to hide duplicate info). So I wanted to ask, since this is related to what I am working on and might be helpful to others if I can get it working – what code would need to be adapted to accept Ecwid products within the RankMath sitemap feature and have them included in the index?

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Todd
    Rank Math free

    Hi Michael,

    Do let us know if any input is needed from our end.

    Thank you Todd, I will certainly do that 🙂

    Todd
    Rank Math free

    Hi Michael,

    Thank you.

    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.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘Include products in sitemap’ is closed to new replies.