Categories & Tags in Sitemap
-
Hi,
I just activated the sitemap in Jetpack, because you have a really good image sitemap 🙂
But I was wondering why only posts and images are included in the sitemap? Is there any reason, why Categories & Tags are not listed in the sitemap?
Is there a way to include them? I found your post “How to add more Post Types to the sitemap” – but I´m not sure if this is also valid for Tags and Categories?
Can I add something like this to my functions.php?
add_filter( ‘jetpack_sitemap_post_types’, ‘htdat_jetpack_sitemap_post_types’ );
function htdat_jetpack_sitemap_post_types( $post_types ) {
$post_types[] = ‘category’;
$post_types[] = ‘tag’;
return $post_types; }I hope you can help me to find the right code.
Michael
- The topic ‘Categories & Tags in Sitemap’ is closed to new replies.