Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
After translating product category taxonomies, cusrev reviews are no longer displayed in the translated categories, showing "Keine Rezensionen vorhanden" instead. The synchronization of product categories does not resolve the issue.
Solution:
We recommend modifying the code in the Customer Reviews for WooCommerce plugin to ensure compatibility with WPML. Here are the steps:
1. Open the file at

...\wp-content\plugins\customer-reviews-woocommerce\includes\blocks\class-cr-reviews-slider.php

.
2. Navigate to line 156.
3. Replace the existing code block with the following:

} elseif ( has_filter( 'wpml_current_language' ) ) {<br />    // WPML compatibility<br />    global $sitepress;<br />    if ( $sitepress ) {<br />        remove_filter( 'comments_clauses', array( $sitepress, 'comments_clauses' ), 10, 2 );<br />        foreach ( $post_ids as $product_id ) {<br />            $trid = apply_filters( 'wpml_element_trid', NULL, $product_id, 'post_product' );<br />            $translationIds = apply_filters( 'wpml_get_element_translations', NULL, $trid, 'post_product' );<br />            foreach ( $translationIds as $translationID ) {<br />                $post_ids[] = (int) $translationID->element_id;<br />            }<br />        }<br />        $args['post__in'] = $post_ids;<br />    }<br />}

After applying this change, reviews should display correctly across all translated categories.

Please note that this solution might become outdated or may not apply to your specific case. If the issue persists, we highly recommend checking related 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.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 13 replies, has 0 voices.

Last updated by Paola Mendiburu 2 months, 3 weeks ago.

Assisted by: Paola Mendiburu.

Author Posts
January 21, 2026 at 9:21 am #17749447

justusR

After translating the product category taxonomies, cusrev reviews are no longer shown.

Near the end of the page is a cusrev block, which now says "Keine Rezensionen vorhanden". The Dutch version shows the reviews correctly.

This worked fine until I translated the categories.

Tried button "Synchronize Product Categories assignment in content", but that runs forever and does not seem to have any effect.
WCML has the show reviews for all languages enabled

January 21, 2026 at 10:26 am #17749644

justusR

Hi my login details are publicly shown!!!! Please remove

January 21, 2026 at 10:47 am #17749850

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

Please could you please install the plugin on the following test site:
hidden link

Please let me know when it is done so I can reproduce the issue.

January 21, 2026 at 1:30 pm #17750442

justusR

I added the cusrev plugin.

January 21, 2026 at 1:32 pm #17750467

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

I have removed.

I recommend you to delete that user.

January 22, 2026 at 1:01 pm #17753923

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

I was able to reproduce the issue:
- if I don´t select any category it appears the review correctly
- if I select a category will only appears the reviews on the corresponding language, for example if you add a review from german it will appear hidden link

I am preparing to send it to the compatibility team to see if this is expected and if there is any workaround

January 22, 2026 at 1:47 pm #17754126

justusR

Glad to hear you can reproduce the issue! Looking forward to a solution 🙂

January 22, 2026 at 5:01 pm #17754900

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

The issue has been escalated to the second tier.

I will let you know when I have news.

January 23, 2026 at 8:36 am #17756149

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

Our second tier found a solution, please do the following:

- Open the ...\wp-content\plugins\customer-reviews-woocommerce\includes\blocks\class-cr-reviews-slider.php file.

- Look for line 156.

- Replace:

			} elseif ( has_filter( 'wpml_current_language' ) ) {
				// WPML compatibility
				global $sitepress;
				if ( $sitepress ) {
					remove_filter( 'comments_clauses', array( $sitepress, 'comments_clauses' ), 10, 2 );
				}
			}

- With:

			} elseif ( has_filter( 'wpml_current_language' ) ) {
				// WPML compatibility
				global $sitepress;
				if ( $sitepress ) {
					remove_filter( 'comments_clauses', array( $sitepress, 'comments_clauses' ), 10, 2 );
					foreach ( $post_ids as $product_id ) {
						$trid = apply_filters( 'wpml_element_trid', NULL, $product_id, 'post_product' );
						$translationIds = apply_filters( 'wpml_get_element_translations', NULL, $trid, 'post_product' );
						foreach ( $translationIds as $translationID ) {
							$post_ids[] = (int) $translationID->element_id;
						}
					}
					$args['post__in'] = $post_ids;
				}
			}

Then you will see that reviews appears correctly.

January 26, 2026 at 4:11 pm #17763515

justusR

I applied the change on the staging site, but it had no effect.

Let me know how I can share login details to the staging site.

January 27, 2026 at 12:42 pm #17766985

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

I have enabled next answer as private so you can add login details.

January 28, 2026 at 4:28 pm #17771370

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

The issue was that the workaround had not been applied yet. I’ve now added it, and the reviews are displaying correctly.

Could you please check on your side and confirm that everything looks fine now?

January 29, 2026 at 7:55 am #17772518

justusR

Great, it works!

Now I assume this workaround will break as soon as cusrev releases an update?
If so, will WPML communicate the fix to Cusrev?

January 29, 2026 at 2:26 pm #17774208

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Yes our compatibility team will contact the author of the plugin so they can integrate the workaround in the plugin code.