דלג על הניווט

Open

Topic Tags: Compatibility

Overview of the issue

On websites using The Events Calendar (TEC) plugin with WPML configured for different domains per language, event links may display incorrect URLs when switching languages.

Workaround

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

  • Open …/wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/V1/Integrations/WPML/WPML_Integration.php file.
  • Look for line 78.
  • Change:
    1
    2
    // Remove the home URL from permalink.
    $post_link = str_replace( array( home_url( '/' ), site_url( '/' ) ), '', $post_link );
  • For:
    1
    2
    // Remove the home URL from permalink.
    $post_link = str_replace( array( home_url( '/' ), site_url( '/' ), get_option( 'home' ) ), '', $post_link );

השאר תגובה

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

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