탐색 건너뛰기

Open

Reported for: WPML Multilingual CMS 4.6.8

Topic Tags: Compatibility

Overview of the issue

If you are using The Events Calendar in conjunction with WPML, links for instances of recurring events incorrectly point to the first event occurrence.

Workaround

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

Option 1

  • Go to WPML > Settings > Post Types Translation section.
  • Set your Pages as Translatable – only show translated items

Option 2

  • Open your theme’s functions.php file.
  • Add the following code:
    add_filter ('the_content', 'remove_wpml_filter', 98, 1);
    function remove_wpml_filter($content) {
    	global $wp_filter;
    	foreach ($wp_filter["the_content"]->callbacks[99] as $key => $value) {
    		if(str_contains($key, 'fix_fallback_links')){
    			remove_filter( 'the_content', $key, 99 );
    		}
    	}
    	return $content;
    }
    

답장을 남겨주세요

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

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