• Resolved Marcus

    (@marcus2907)


    Hi,

    I need help with The SEO Framework and WPML “sitemap.xml”.

    I use WPML for German and English, which also works as far as everything except the sitemap of The SEO Framework. Here I get duplicate URL, as shown in the example.

    Current Issue Sitemap:
    domain.de/blog/
    domain.de/blog/

    Required issue Sitemap:
    domain.de/blog/
    domain.de/en/blog/

    What am I doing wrong?

    Kind regards

    The page I need help with: [log in to see the link]

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

    (@cybr)

    Hi @marcus2907,

    I suspect that the duplicated posts have the same ID as their parent post, but are in another language.
    This happens quite often with translation plugins, and although WPML has tools in its framework to work around this, other plugins don’t.

    Generally, WPML applies patches for plugins that seem to have superficial conflicts.
    But I don’t believe it should be resolved through patches; instead, it should rather be done through rudimentarily rebasing the way things work.

    That said, WPML does offer an option to “Make themes work multilingual / Adjust IDs for multilingual functionality” in their language settings.
    This is done by adjusting the IDs of each post so to become unique. With that, no conflicts should arise when making database calls. It effectively and correctly resolves the issue I described above.

    However, don’t take this option kindly. Do make a backup of your website and database before proceeding.

    If setting that option doesn’t work, then I suggest using a standalone sitemap plugin for which WPML did provide patches. One of which is Google XML Sitemaps.

    I hope this clears things up! Cheers 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘WPML Sitemap’ is closed to new replies.