leuno
Forum Replies Created
-
thx Joel,
this is my testing environment
https://staging.menabo.cpanel.regsm.it/biosphere/news-2/Forum: Plugins
In reply to: [Filter Everything — WordPress & WooCommerce Filters] Filter- WPML + ACFok I modify your script and now I have the correct language on the filter,
now I need to change the slug, I need to translate Global filter prefixes and filter slug in second language, for example:first language:menu/ingredienti-pecorino/
second language:menu/ingredienti-pecorino-cheese (no page found)In second language I need /ingredients-pecorino-cheese
How to make this?
Forum: Plugins
In reply to: [Filter Everything — WordPress & WooCommerce Filters] Filter- WPML + ACFI try with this function:
add_filter('wpc_terms_before_display', 'translate_acf_fields', 10, 2); function translate_acf_fields($terms, $filter) { $fields_to_translate = array('tipologia', 'regione', 'cucina', 'origine', 'stagioni', 'informazioni', 'ingredienti', 'e_ora_di', 'Formaggio'); if (function_exists('get_field_object') && in_array($filter['e_name'], $fields_to_translate)) { $newTerms = []; foreach ($terms as $k => $term) { $field_value = $term->name; if ($field_value !== false) { if (function_exists('icl_translate')) { $current_language = apply_filters('wpml_current_language', NULL); $field_value_translation = icl_translate('acf', $filter['e_name'], $field_value, $current_language); $term->name = $field_value_translation; } } $newTerms[$k] = $term; } return $newTerms; } return $terms; }But filter is always in the first language (it), I hope you can help me.
THXForum: Plugins
In reply to: [Filter Everything — WordPress & WooCommerce Filters] Filter- WPML + ACF“You need to create a custom field for each language and apply it to your products, so you can use in each filter set translation the needed custom fields like catgory_en, category_fr, and so on.”
I need to translate and apply to all my products?! I have 250 products this is a nightmare 😐
if I use wpc_terms_before_display hook how I can work with seo? I can change also the slug?
- This reply was modified 2 years, 4 months ago by leuno.
PERFECT!! thank you very much!
sorry but my website is under maintenance mode.
this is the problem: https://ibb.co/Yb7dpJz
this what I need: https://ibb.co/vL646kXForum: Plugins
In reply to: [Max Mega Menu] hover effectsorry, this is my problem:
I have insert fibosearch field in my megamenu, but when user go with mouse on result list div, MMM close because lost hover focus.