This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
The language switcher only displays the default language on the author's profile
Started by: manuelO-2
in: English Support
Problem: Alternatively, you can use a custom code approach. We've provided a code snippet that you can add to your theme's functions.php file. This code will adjust the Language Switcher on the Author page to show additional languages, regardless of whether the author's posts have been translated. Here is the code snippet: function author_language_switch($w_active_languages ) { if(is_author() && count($w_active_languages) == 1) { $user_id = get_the_author_meta('ID'); $author_url = get_author_posts_url($user_id); $languages = apply_filters( 'wpml_active_languages', NULL, array( 'skip_missing' => 0 ) ); foreach($languages as $language) { $languages[$language['code']]['url'] = apply_filters( 'wpml_permalink', $author_url, $language['code']); } return $languages; } return $w_active_languages; } Remember to also translate the author's biographical information as described in our guide on translating user meta information with WPML. If this solution doesn't seem relevant to your situation, please don't hesitate to open a new support ticket with us for personalized assistance. You can do so by visiting our support forum. |
3 | 9 | 4 months ago | ||
Me aparece diferente importe de renovacion
Started by: manuelO-2 in: Soporte en español |
2 | 3 | 4 months, 3 weeks ago | ||
Problema en páginas con página superior seleccionada
Started by: manuelO-2 in: Soporte en español |
2 | 7 | 3 years, 4 months ago | ||
Traducción de plantilla en Premium Addons for Elementor
Started by: manuelO-2 in: English Support |
2 | 10 | 3 years, 10 months ago |