Skip Navigation

Open

Reported for: WPML SEO 2.1.0

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 );
    

2 Responses to “WPML SEO - Issue with Divi Theme and Transient Cache Settings for Yoast SEO Sitemaps”

  1. Bonjour,

    J’utilise WPML (site multilingue avec des répertoires /fr/)+ DIVI + Yoast SEO. Lorsque je génère le XML Sitemap. J’ai uniquement les urls du .com qui s’affichent. Ayant trois langues, j’ai donc trois fois la même Url.

    Je crains que la SCG n’aime pas. Pouvez-vous m’aider à résoudre ce problème ?

    Merci

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>