• Resolved Hello Charlie

    (@hellocharlie)


    I’m using Prisna Translate which generates its own translation sitemaps. I’ve submitted these manually to Google Search Console, but they do not appear in this. Is there any way you can automatically detect or we can manually add these sitemaps to your output?

    Here is an example of my Hello Charlie Books Translated Language Sitemap produced by Prisna Translate.

    I realize I could also add the sitemaps manually to a blog post or on a main page where it will be picked up then indexed further down the output tree, but it would be nice to not have to do that, especially for search engines which look for default sitemaps and generic names in the base directory. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Grim

    (@wpgrim)

    Hello @hellocharlie

    Seems you are using Sitemap Index structure, therefore we’ve added a new filter for you, with version 1.8.12. After updating the plugin, you can add your Custom Sitemap URLs using sgg_additional_index_sitemaps filter. Here is an example:

    add_filter( 'sgg_additional_index_sitemaps', 'my_additional_index_sitemaps' );
    function my_additional_index_sitemaps( $sitemaps ) {
        $sitemaps[] = 'https://hellocharliebooks.com/sitemap-translate.xml';
        return $sitemaps;
    }

    You can add above code in your Theme or Child Theme functions.php file.

    Best regards

    Thread Starter Hello Charlie

    (@hellocharlie)

    Thanks. I appreciate it. Do you think this might be something you might add into the UI for a future release and if so, should I possibly hold off manually integrating this code? Perhaps automatic detection in case this particular plugin is detected and your script integrates it? I recognize how much effort you have put into this and how these things are easier said than done.

    For now I manually submitted the language Sitemap and referenced it in my robots.txt so it’s not critical. It might even be redundant.

    Plugin Author WP Grim

    (@wpgrim)

    We will try to implement UI version of this feature. But automatically detecting the Sitemaps is a bit complex feature, as not everyone wants to find all Sitemaps, as many SEO plugins create Sitemaps and it may cause duplicating issue. Also, we don’t have Prisna Translate plugin, therefore we couldn’t make a compatibility with its Sitemaps.

    Also, robots.txt contains your Sitemap Index URL, therefore Inner Sitemap URLs don’t need to be added manually. Don’t worry about this ??

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Additional Custom Sitemaps’ is closed to new replies.