• Resolved Jeffinho2016

    (@jeffinho2016)


    @google-sitemap-generator @arnee
    Is there a way/hook to add a custom sub-sitemap to the sitemap index?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jeffinho2016

    (@jeffinho2016)

    here’s what we came up with to get it to work:

    function addCustomSitemap($gsg) {
    $sitemap = new GoogleSitemapGeneratorSitemapEntry(‘my_custom_site_map.xml’);
    $gsg->AddElement($sitemap);
    }

    add_action(‘sm_build_index’, ‘addCustomSitemap’, 100, 1);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add custom sub-sitemap’ is closed to new replies.