Add custom sitemap?
-
I need to add custom sitemaps to the sitemap.xml. I found this code (below) but this is not working. What do I need to do to add additional custom XML sitemaps to the set?
Here is the code I had found but is not working…
function addCustomSitemap($gsg) { $sitemap = new GoogleSitemapGeneratorSitemapEntry('my-sitemap.xml'); $gsg->AddElement($sitemap); } add_action(‘sm_build_index’, ‘addCustomSitemap’, 100, 1);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add custom sitemap?’ is closed to new replies.