WPML
Trạng thái
Đã được giải quyết bởi nhà phát triển
Plugin/giao diện liên quan
Houzez
Thẻ chủ đề
Compatibility

Tổng quan về lỗi

Khi sử dụng giao diện Houzez với WPML, bạn có thể gặp sự cố số liệu thống kê của môi giới (ví dụ: thống kê, đánh giá, danh sách) không được hiển thị trên các trang môi giới đã dịch.

Giải pháp tạm thời

Vui lòng đảm bảo bạn đã sao lưu toàn bộ trang web của mình trước khi tiếp tục.


  • Mở tệp …/wp-content/themes/houzez/template-parts/realtors/agent/single-agent-v1.php.

  • Tìm dòng 70.

  • Thay thế:
    if( houzez_option('agent_stats', 0) != 0 ) {
     $agent_listing_ids = Houzez_Query::get_agent_properties_ids_by_agent_id(get_the_ID());
    }
            


  • Bằng:
    if( houzez_option('agent_stats', 0) != 0 ) {
    $default_lang_agent_id = apply_filters( 'wpml_object_id', get_the_ID(), 'houzez_agent', false, wpml_get_default_language() );
    $agent_listing_ids = Houzez_Query::get_agent_properties_ids_by_agent_id($default_lang_agent_id);}
            

  • Sau đó mở tệp …/wp-content/themes/houzez/framework/functions/stats.php.
  • Thay thế:
    $count = houzez_realtor_stats($taxonomy_name, $meta_key, get_the_ID(), $slug);
            
  • Bằng:
    $default_lang_agent_id = apply_filters( 'wpml_object_id', get_the_ID(), 'houzez_agent', false, wpml_get_default_language() );
    $count = houzez_realtor_stats($taxonomy_name, $meta_key, $default_lang_agent_id, $slug);
            

Tất cả các lỗi đã ghi nhận →