Sauter la navigation

Resolved

Resolved in: WPML 4.6.10

Topic Tags: Compatibility

Overview of the issue

Translating a page created with Cornerstone builder with any of WPML editors, Classical or Advanced, won’t display the translation correctly on the frontend.

Workaround

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

  • Open …/wp-content/plugins/cornerstone/includes/classes/Services/FrontEnd.php file.
  • Look for line 88.
  • Replace:
    $content = $this->render_the_content_cached($_p, $content);
    
  • With:
    $_p = apply_filters( 'wpml_object_id', $_p, get_post_type($_p), true );
    $content = $this->render_the_content_cached($_p, $content);