• Resolved leemon

    (@leemon)


    Hi!

    I’m having problems with the sitemap generation in a site which uses the Polylang plugin. The site is translated into three languages (Spanish, Catalan and English). The sitemap generation works in all the languages except the default one (Spanish), which only shows two entries:

    https://example.com/sitemap.xml:

    https://example.com/
    https://example.com/blog/

    Both the Catalan and English versions show all the entries (pages and posts):

    https://example.com/en/sitemap.xml:

    https://example.com/en/
    https://example.com/blog/
    https://example.com/en/about/
    https://example.com/en/contact/
    (... rest of the pages and posts, omitted for brevity... )

    Any idea why this is happening?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    The following bug report is likely related to the issue you’re experiencing: https://github.com/sybrew/the-seo-framework/issues/586.

    I’m afraid there’s no easy workaround until we address the issue. We still need to test the issue on our testing environments.

    If you wish to get your hands dirty using a theoretical patch, let me know, and I’ll write up a filter.

    Thread Starter leemon

    (@leemon)

    So, does the issue happen when there are untranslated posts? In my site I translate everything (pages and custom post types) but not posts.

    Thread Starter leemon

    (@leemon)

    I tried the fix found in the GitHub issue you posted, and it resolves my problem with the default language sitemap. And the other languages sitemaps continue to work. But, I don’t know if this fix has side-effects anywhere else.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi again!

    Thank you for testing the provided fix. It only affects the sitemap; so, you won’t find side effects anywhere.

    I’ll also test it internally and ship it with the upcoming major update. That can take a few months, though. No more minor updates are scheduled until then, so your code changes should remain unaffected.

    Thread Starter leemon

    (@leemon)

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sitemap issue with Polylang default language’ is closed to new replies.