This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
|Homepage in different language is redirected to base language||2||6||2 months, 1 week ago|
| has_therm() not working in other languages|
Problem: Custom template for custom post type does not load posts using get_term() function.
Solution: The problem was that while the taxonomies had been translated, the posts for the custom post type had not translated.
|2||6||1 year ago|
| Browser language redirection does not work|
|2||6||3 years ago|
| Switching back to base language site, doesn’t work 1 2|
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']); define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
So if you access your primary language the $_SERVER['HTTP_HOST'] variable is correct, however in the moment when you switch to the other language, the $_SERVER['HTTP_HOST'] variable has changed to the current subdomain/domain, and it no longer points to the same language that it should, but it points to itself.
Removing such override is very advisable, especially since WPML does not read wp-config.php
|3||25||3 years, 6 months ago|