This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Problems with language switcher
Started by: mathiasA-14
in: English Support
Problem: The client is experiencing an issue where the language switcher on their website does not direct to the translated page but instead redirects randomly. This problem is due to a conflict with the WPResidence theme's caching method, which incorrectly caches the language switcher links. Solution: 1. As a temporary fix, we recommend adding the following code to the functions.php file of your theme to clear the WPResidence menu transients on each page load, ensuring the menu updates correctly and displays the appropriate language links: /** * Zap every WP Residence menu transient on each page load. * The target string is unique enough that a single LIKE works. */ function cleanup_wpresidence_menu_transients() { global $wpdb; $like = '%' . $wpdb->esc_like( 'wpestate_wpresidence_primary_menu_complete' ) . '%'; $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", $like ) ); } add_action( 'init', 'cleanup_wpresidence_menu_transients' ); Ensure you perform a full site backup before implementing this code. After adding the code, clear all types of caches to check if the issue persists. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML Support Forum for further assistance. |
|
0 | 15 | 1 month, 1 week ago | |
Inconsistent Image Duplication When Translating Listings (WPResidence Compatibility Issue)
Started by: mathiasA-14 in: English Support |
|
0 | 4 | 1 month, 3 weeks ago | |
Problem with translated property images using WP Residence
Started by: mathiasA-14
in: Soporte en español
Problema: Si esta solución no resuelve tu problema o parece desactualizada, te recomendamos abrir un nuevo ticket de soporte. También te sugerimos revisar los problemas conocidos en https://wpml.org/known-issues/, verificar la versión del arreglo permanente y confirmar que tienes instaladas las últimas versiones de los temas y plugins. |
|
0 | 3 | 3 months, 3 weeks ago |