탐색 건너뛰기

Waiting for author

Topic Tags: Compatibility

Overview of the issue

If you are using Business Directory Plugin, you will be unable to translate listing images. When attempting to translate an image through WPML Media Translation or by manually changing the image in the translated version of a listing, the original language image continues to display on the front end.

Workaround

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

  • Install WPML Media Translation plugin.
  • Go to WPML > Media translation page.
  • Translate the image.
  • Open …/wp-content/plugins/business-directory-plugin/includes/helpers/functions/templates-ui.php file.
  • Look for line 533.
  • Replace:
    			$main_image->ID,
    
  • With:
    			apply_filters( 'wpml_object_id', $main_image->ID, 'attachment' ),
    

답장을 남겨주세요

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

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