WPML
Status
Resolved
Reported for
WPML SEO 2.1.0
Resolved in
WPML SEO 2.2.0
Related plugin/theme
Yoast SEO, Divi
Topic tags
Compatibility

Overview of the issue

When using the Divi theme on a multilingual WordPress site with different domains per language, the Yoast SEO sitemaps may incorrectly display the wrong domain.

Workaround

Please, make sure of having a full backup of your site before proceeding.


  • Open …/wp-content/plugins/wp-seo-multilingual/classes/class-wpml-wpseo-xml-sitemaps-filter.php file.

  • Look for line 77.

  • Change:
    		add_filter( 'wpseo_enable_xml_sitemap_transient_caching', [ $this, 'transient_cache_filter' ], 10, 0 );

  • For
     		add_filter( 'wpseo_enable_xml_sitemap_transient_caching', [ $this, 'transient_cache_filter' ], PHP_INT_MAX, 0 );

All known issues →