Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues with translating a plugin string using WPML, specifically within the wc-ajax-product-filter plugin.
Solution:
We recommend you try the following steps:
1- Open the

../wp-content/plugins/wc-ajax-product-filter/templates/filter-title.php

file.
2- Locate line 35 and replace:

<?php echo esc_html( $filter_title ); ?>

with

<?php echo esc_html__( $filter_title, 'wc-ajax-product-filter' ); ?>

3- Rescan the plugin or visit the page on the frontend.
4- Navigate to WPML > String Translation to translate it.

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 https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, if you need further assistance, please open a new support ticket at WPML support forum.

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 7 replies, has 0 voices.

Last updated by floreV 3 months ago.

Assisted by: Osama Mersal.

Author Posts
January 21, 2026 at 1:43 am #17748651

floreV

Hello,

Ok thanks a lot !
I have another issue : I am using the plugin "WCAPF - WooCommerce Ajax Product Filter" to filter the products on the archive pages but I do not find how to translate the titles of the filters (see print screen attached).

I checked the string translation but could not find the related strings.

Thanks for your help.

Kind regards,
Flore

January 21, 2026 at 12:00 pm #17750158

Osama Mersal

Hi Flore,

I'm Osama from the WPML support team. I'll be glad to help you today.

Please log in to this hidden link and install the filter plugin.

After that, please try to replicate the issue. If the issue is replicable, please let me know how to reproduce it so I can check it.

Note: This sandbox site has WPML and WooCommerce installed and activated.

Thanks for your cooperation

Best regards,
Osama

January 22, 2026 at 9:47 am #17753009

floreV

Hello Osama,

I have installed the plugin WCAPF on the sandbox site, created the filters (see print screen attached : I have circled the filter titles that I need to be able to translate into other languages).

However, I do not manage to make the filters shown on the front end of your sandbox because It does not have archive pages with the products and a side bar.

Please create one and insert the widget "WCAPF" into it and you will see the issue.

Thanks for your help.

Kind regards,
Flore

Capture d’écran 2026-01-22 à 10.44.26.png
January 22, 2026 at 10:59 am #17753413

Osama Mersal

Hi Flore,

Thanks for installing the plugin. I was able to add the filters using the widgets. Please check this hidden link.

I'll consult our compatibility team regarding the issue and will update you as soon as I get their reply.

Thanks,
Osama

January 22, 2026 at 4:58 pm #17754881

floreV

Ok thanks I wait for your feedback then !

Kind regards,
Flore

January 25, 2026 at 11:13 am #17759873

Osama Mersal

Hi Flore,

Thanks for your patience. Please try the following workaround:

1- Open the ../wp-content/plugins/wc-ajax-product-filter/templates/filter-title.php file.
2- Look for line 35. Replace:

<?php echo esc_html( $filter_title ); ?>

With

<?php echo esc_html__( $filter_title, 'wc-ajax-product-filter' ); ?>

3- Rescan the plugin / visit the page on the frontend
4- Go to WPML > String translation to translate it

Please let me know if the workaround above resolves the issue.

Best regards,
Osama

January 26, 2026 at 10:42 am #17761876

floreV

Hello Osama,

I have done all what you said but still, the strings do not appear so I still cannot translate the titles of the filters.

Could you please check again?

Thanks.

Best regards,
Flore

January 26, 2026 at 10:08 pm #17764373

Osama Mersal

Hi Flore,

I tested the workaroundon the sandbox site, and it works correctly. Please check the hidden link in all languages.

Please visit the shop/archive page on the frontend on your site in the default language. After that, please go to WPML-> String Translations, search for the filter label, and translate it.

Best regards,
Osama

January 27, 2026 at 8:38 am #17765722

floreV

Perfect thanks !