wpml language switcher shortcode

[php] function language_switcher_fun( $atts ){ ob_start(); do_action(‘icl_language_selector’); return ob_get_clean(); } add_shortcode( ‘language_switcher_shortcode’, ‘language_switcher_fun’ ); [/php] You can use it like this [language_switcher_shortcode]