דלג על הניווט

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using Accommodation templates from the Hotel Booking Styles & Templates add-on for MotoPress Hotel Booking with WPML, you might notice that the translated template does not appear on the frontend. Instead, the original template is applied to the translated Accommodation.

Workaround

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

  • Open the …/wp-content/plugins/mphb-styles/includes/template-editor/includes/templates.php file.
  • Look for line 93.
  • Replace:
            // get chosen Template for Acc. Type
            $templateID = get_post_meta($post->ID, '_wp_page_template', true);
            
  • With:
            // get chosen Template for Acc. Type
            $templateID = get_post_meta($post->ID, '_wp_page_template', true);
            // WPML Workaround for compsupp-8024 
            $templateID = apply_filters( 'wpml_object_id', $templateID, 'mphb_template', TRUE ); 
            

השאר תגובה

אנא הישאר בנושא והיה מכבד כלפי אחרים. אם אתה זקוק לעזרה בנושאים שאינם קשורים לפוסט זה, השתמש בפורום התמיכה שלנו כדי להתחיל צ'אט או לשלוח כרטיס.

אתה יכול להשתמש בתגים אלה:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>