-
Hi there,
you build a great plugin!
One question (could not found anything in the tickets and knowledge base…).Is it possible to add an own / extra sitemap_own.xml to the sitemap_index.xml like yoast offers with it wpseo_sitemap_index
e.g.*/
function my_wpseo_sitemap_index()
{
// Add custom item to sitemap index
$extraSitemaps = ‘
<sitemap>
<loc>’ . get_bloginfo(‘url’) . ‘/sitemap/sitemap_shops_dach.xml</loc>
<lastmod>’ . date(‘Y-m-d’) . ‘T’ . date(‘H:i:s+00:00’) . ‘</lastmod>
</sitemap>
‘;
return $extraSitemaps;
}add_filter(‘wpseo_sitemap_index’, ‘my_wpseo_sitemap_index’);
Thanks a lot and best regards
Matthias
The ticket ‘Adding extra sitemap_own.xml to sitemap_index.html’ is closed to new replies.