WordPress WPML language link only with text
1 2 3 4 5 6 7 8 9 10 |
// Create links to other language function icl_post_languages(){ $languages = icl_get_languages('skip_missing=1'); if(1 < count($languages)){ foreach($languages as $l){ if(!$l['active']) $langs[] = '<a href="'.$l['url'].'">'.$l['native_name'].'</a>'; } echo join(', ', $langs); } } |
1 2 |
// Call functions by php <!--?php icl_post_languages(); ?--> |
Leave a Comment