This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Issue between portofolio and taxonomy
Started by: John
in: English Support
Problem: functions.php file: // WPML Workaround for compsupp-7272<br />function wpml_compsupp7272_brisk_filter_category_slug($slug) {<br /> if ( class_exists( 'Sitepress' ) ) {<br /> /* We need to register the same slug in all languages, then translate that slug with a string translator<br /> * So let's hardcode the slug here and translate it later<br /> */<br /> $slug = 'products-category';<br /> }<br /> return $slug;<br />}<br /><br />add_filter( 'uicore_portfolio_category_slug', 'wpml_compsupp7272_brisk_filter_category_slug' );<br /><br />$slug = apply_filters( 'uicore_portfolio_slug', $slug );<br /><br />function wpml_compsupp7272_brisk_filter_portfolio_slug($slug) {<br /> if ( class_exists( 'Sitepress' ) ) {<br /> /* We need to register the same slug in all languages, then translate that slug WPML > Settings > Post Type Translation<br /> * So let's hardcode the slug here and translate it later<br /> */<br /> $slug = 'products';<br /> }<br /> return $slug;<br />}<br /><br />add_filter( 'uicore_portfolio_slug', 'wpml_compsupp7272_brisk_filter_portfolio_slug' ); 2. Go to the WPML String translator and translate the category slug. We recommend checking the 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. If the solution provided here is irrelevant due to being outdated or not applicable to your case, please open a new support ticket at our support forum. |
3 | 9 | 1 week ago | ||
We are having and issue with the scheduled prices
Started by: John in: English Support |
2 | 17 | 4 months, 1 week ago | ||
Translating WooCommerce Parts Compatibility Editor
Started by: John in: English Support |
2 | 6 | 7 months ago | ||
Session expired on checkout
1
2
Started by: John in: English Support |
3 | 20 | 7 months ago | ||
WPML Translation editor missing strings
Started by: John in: English Support |
2 | 3 | 7 months ago | ||
Follow up to Site Language resetting the cache
1
2
Started by: John
in: English Support
Problem: Solution: We made a minor change to bypass the In the meantime, we suggest ignoring If this |
4 | 22 | 1 year, 1 month ago | ||
Scheduled sale price mixes the pricing with default language
Started by: John in: English Support |
3 | 13 | 1 year, 3 months ago | ||
Wpml client location reset caching
1
2
Started by: John in: English Support |
2 | 18 | 1 year, 4 months ago | ||
We have an issue with the emails
1
2
Started by: John in: English Support |
2 | 17 | 1 year, 4 months ago | ||
Get post meta price doesn't return posta meta database value
Started by: John in: English Support |
2 | 7 | 1 year, 6 months ago | ||
I have an issue with the strings from WooCommerce emails
1
2
Started by: John in: English Support |
3 | 27 | 1 year, 7 months ago | ||
Split: I have an issue regarding translating some strings
Started by: John in: English Support |
2 | 7 |
1 year, 8 months ago
John |
||
I have an issue regarding translating some strings
Started by: John
in: English Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 1 year, 8 months ago | ||
issue with wpml and product attributes
1
2
Started by: John
in: English Support
Problem: Solution: /** * WPML Workaround for compsupp-6299 */ add_action('wp_head', 'wpml_compsupp6299_replace_term_meta_on_translations'); function wpml_compsupp6299_replace_term_meta_on_translations() { // Settings $taxonomy = 'pa_color'; // Replace with the attribute taxonomy $term_meta_key = '_xts_attribute_image'; //Replace with the term meta key //Get Terms $terms = get_terms(array( 'taxonomy' => $taxonomy, 'hide_empty' => false, ) ); echo '<div style="margin: 20px auto; border-radius: 20px; width: 800px; padding: 20px; border: 4px solid #ff0000;">'; foreach ( $terms as $term ) { $term_meta_value = get_term_meta( $term->term_id, $term_meta_key, true ); //Get Translations $taxonomy_wpml_key = 'tax_'.$taxonomy; $trid = apply_filters( 'wpml_element_trid', NULL, $term->term_id, $taxonomy_wpml_key ); $translations = apply_filters( 'wpml_get_element_translations', NULL, $trid, $taxonomy_wpml_key); foreach ($translations as $translation) { $translation_id = intval($translation->element_id); // Update term meta on translations with the meta value from the original term if ($translation_id != $term->term_id ) { update_term_meta( $translation_id, $term_meta_key, $term_meta_value ); echo '<h4>Term '.$translation_id.' updated.</h4>'; echo '<hr/>'; } } } echo '<p>Please remove the workaround from the functions.php file.'; echo '</div>'; } - Visit the site on front-end which will execute the code and the values from _xts_attribute_image term meta will be copied to the translations of the taxonomy/attributes. Relevant Documentation: |
2 | 24 | 1 year, 8 months ago | ||
Split: Product template with Vega theme
Started by: John in: English Support |
2 | 4 | 1 year, 9 months ago |