WPML
Status
Resolved
Resolved in
WPML SEO 2.2.0
Related plugin/theme
Divi
Topic tags
Compatibility

Overview of the issue

When using Divi and Yoast SEO with WPML, sitemaps won’t appear as expected if you set the language URL format as A different domain per language.

Instead, it will only show the sitemap for the last language you used before turning on the Yoast XML sitemap option.

For example, if you select a secondary language and turn that option off and then on again, the sitemap will show up in that specific language only. It will show the same links in the sitemap for all domains while it should show a different/correct links for each domain.

Workaround

Add the following code to your functions.php file:

add_filter( 'wpseo_enable_xml_sitemap_transient_caching' , '__return_false' ,11);

If you are still experiencing this issue while using Divi and Yoast SEO, please follow this other workaround.

Next steps

Multiple clients have already reported this issue to Divi, but it can help move things along if you contact Elegant Themes via their contact form and requested a timeline for the fix.

All known issues →