WPML

Overview of the Issue

When using GreenShift with WPML, you might experience the following issue: a translated page with the [wp_reusable_render id="..."] shortcode shows the reusable template in the default language, even when the template is translated.

Workaround

Add the following code to the functions.php file of your child theme. With it, a translated page shows the translated template.

PHP
add_filter( 'gspb_template_shortcode_function_id', function ( $id ) {
    return is_numeric( $id ) ? apply_filters( 'wpml_object_id', (int) $id, 'wp_block', true ) : $id;
} );

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.