Support » Plugin: Jetpack by WordPress.com » Categories & Tags in Sitemap

  • Resolved michaelxxx

    (@michaelxxx)


    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

    • This topic was modified 9 months, 1 week ago by michaelxxx.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories & Tags in Sitemap’ is closed to new replies.