Reply 325570 to: Category name under some thumbs is multiplied

Avatar: Olga Barlow
Olga Barlow
Support staff
June 10, 2022 at 08:49

Hello,

This is the conflict between the new version of WordPress and the WPML plugin.

We use default WooCommerce function wc_get_product_category_list() http://hookr.io/functions/wc_get_product_category_list/ .
This function is based on the get_the_term_list() https://developer.wordpress.org/reference/functions/get_the_term_list/ that based on get_the_terms() https://developer.wordpress.org/reference/functions/get_the_terms/ .
And problem is that get_the_terms() returns incorrect data after latest WP update.
We added a temporary fix in the child theme and use another function that gets data directly from the DB without using the default functions that I mentioned above. But it may slow down the page speed. So, I would recommend you to contact WP and WPML support to ask them to check the mentioned default functions and fix them.

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.