• Resolved eSabthok

    (@esabthok)


    I am using Falang translating plugin to translate my site. It is good that Rank math is generating sitemaps for both original and translated. My posts are usually in 2 languages and rank math is generating both sitemaps as example.com/english/post-title and example.com/nepali/post-title which is good.

    As Some of the posts are only in English language and some are only in Nepali language. Rank math is generating sitemaps for both languages even if posts are created only in one language version. This is causing errors in webmasters and when I manually checked generated sitemaps I found it includes the sitemaps of the posts which does not exist.

    My issues are as follows when I have posted only in one language:

    1) My original post (English language) with no translation done. is example.com/english/post-title-1

    2) My translated post with no original post is example.com/nepali/post-title-2

    but rank math is creating 2 individual sitemaps for these posts as

    1) example.com/english/post-title-1
    and example.com/nepali/post-title-1 (This post post does not exist)

    *sitemap for this post should be only example.com/english/post-title-1

    2) example.com/nepali/post-title-2
    and example.com/english/post-title-2 (This post post does not exist)

    *sitemap for this post should be only example.com/nepali/post-title-2

    How can I fix this sitemap issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @esabthok ,

    Thank you for contacting Rank Math, and sorry for any inconvenience that might have been caused due to that.

    Please note that the “Falang Translate” plugin is not yet fully compatible with Rank Math so you may expect unwanted output when the sitemap is generated.

    You can find all the compatible plugins on this page:
    https://rankmath.com/compatibility/

    It seems that our plugin has detected a separate post type of the Nepali-translated post hence, our plugin has created a separate sitemap for it. This is how our sitemap is generated, it is categorized by post type, archives/taxonomies.

    If the translated post really does not exists, please follow the steps below:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    Let us know how that goes. Looking forward to helping you with this one.

    Thread Starter eSabthok

    (@esabthok)

    As i am using translating plugin if I create a post in only 1 language, that means I did not translate it or did not create in another language. So technically I cant say the posts does not exists. But posts only exist in another language.

    As I have to click create a new post and choose the languages I want to write in. And in some post I am choosing only Nepali or English languages. But the plugin is creating the sitemap for both languages automatically.

    So, for this issue, only solution is: I have to wait until Falang is supported by rank maths? Or is there any way I can manually remove those sitemaps?

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @esabthok,

    You can modify and use this filter to manually remove URLs from the sitemap entry: https://rankmath.com/kb/filters-hooks-api-developer/#filter-sitemap-item

    And here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps. Let us know if you need any other assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatic sitemap is generated for non exisiting posts’ is closed to new replies.