Wp 4.8 breaks polylang wpquery or term_get_by when slugnames are used.
-
Hi
Polylang has the same issue as wpml in wp 4.8.x (tested this several times and even in the default wp theme i get similar results).
Because of changes in get_term_by, you can not get a id of slugnames in translated pages when you are using same code as in the original default language page. One has to manually adjust the code and adjust slugnames to the translated slugnames. Otherwise NULL is returned. When get_term_by id’s are used all works fine. In WP 4.7.5 or below all works just fine. The issue occurs starting wp 4.8 and above.
You can read more on this issue here https://core.trac.www.ads-software.com/ticket/41373
The solution to all this is to be found here
https://wpml.org/forums/topic/translated-category/
Please apply to the polylang plugin similar fix as wpml is going to do.
Thanks
- The topic ‘Wp 4.8 breaks polylang wpquery or term_get_by when slugnames are used.’ is closed to new replies.