Hello Victor,
thank you for your reply.
I tried checking with WPML, and this is the answer by its AI chatbot, I will try to apply the fix in the weekend when I have time but for now I thought I would share it with you, if useful:
**
There is a known tracked bug between the Filter Everything plugin and WPML that closely matches what you’re describing — filter terms not working correctly on the frontend in translated languages. Before applying the workaround, I need to confirm one detail about your setup.
- Go to Plugins -> Installed Plugins and check whether Advanced Custom Fields (ACF) is active on your site.
- Also check: is the GENERE taxonomy a standard WordPress / WooCommerce product attribute or custom taxonomy, or is it a field you created using ACF?
–
I don’t use ACF, and GENERE is a product attribute
–
Since GENERE is a standard WooCommerce product attribute (not an ACF field), the relevant workaround is a tracked WPML bug with the Filter Everything plugin affecting filter term display in translated languages. Let’s apply the fix.
Before starting, take a full site backup.
- Go to Appearance -> Theme File Editor and select functions.php from your Astra Child theme (make sure the child theme file is selected, not the parent).
- Paste the following code at the very bottom of the file:
// WPML Workaround for compsupp-7581
add_filter('wpc_terms_before_display', 'wpml_compsupp7581_filter_wpc_filter_terms', 10, 4);
function wpml_compsupp7581_filter_wpc_filter_terms($terms, $filter, $set, $urlManager) {
if ( class_exists('Sitepress') ) {
foreach ($terms as &$term) {
$label = $term->name;
$textdomain = 'WordPress';
$string_name = 'WPC Filter Label: '.substr($label, 0, 40);
if ( apply_filters('wpml_default_language', NULL) == apply_filters('wpml_current_language', NULL)) {
do_action('wpml_register_single_string', $textdomain, $string_name, $label);
}
$term->name = apply_filters('wpml_translate_single_string', $label, $textdomain, $string_name);
}
}
return $terms;
}
- Click Update File to save.
- Visit your English shop page (the original-language version) — this registers the filter label strings with WPML.
After visiting the English page, go to WPML -> String Translation, search forWPC Filter Labelunder the WordPress textdomain, and confirm that the GENERE / Genre term strings appear there ready for translation.