탐색 건너뛰기

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 응답 에게 “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

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>