This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user had some custom code shortcode to get the current language for the page.
function wpml_language_code_value_func() {
global $post;
$my_post_language_details = apply_filters( 'wpml_post_language_details', NULL, $post->ID );
$value = $my_post_language_details['language_code'];
return $value;
}
add_shortcode('wpml_language_code_value', 'wpml_language_code_value_func');
They wanted to use this is a conditional code to display different content based on the language.
However when added to a conditional code the shorcode doesn't work.
Solution:
Given that this is a custom shortcode it needs to be added to the views 3rd party shortcode arguments. If the shortcode name isn't added here then it won't work inside the conditional code.
This can be found at Toolset->Settings -> Frontend.
This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
I'm assuming that your shortcode returns the correct language code.
Have you added the shortcode name to the views 3rd party shortcode arguments? If the shortcode name isn't added here then it won't work inside the conditional code.
This can be found at Toolset->Settings -> Frontend.