该用户没有最喜欢的主题。
最喜欢的论坛主题
创建的论坛主题
状态 |
主题
|
支持者 | 声音 | 文章 | 新鲜度 |
---|---|---|---|---|---|
I have an issue regarding translating some strings
发起人: John
中: English Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 1 年, 9 月前 | ||
issue with wpml and product attributes
1
2
发起人: John
中: 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 年, 9 月前 | ||
Split: Product template with Vega theme
发起人: John 中: English Support |
2 | 4 | 1 年, 10 月前 | ||
WPML importing attributes issue
发起人: John
中: English Support
Problem: [WP All Export] Exporting products taxonomies – missing WPML Translation ID field Solution: You are trying to export product attributes in 8 languages from one site and import them to another site. You must do that before importing any products with those attribute terms associated with them. You do not need to include the Term ID in the import file because the terms will get new IDs on the new site once the import is complete. So here are the steps you need to take. 1. Export terms in one language, then edit the file and add a unique identifier field/column to all terms. 2. Export terms in another language and edit the file to add a unique identifier field/column to all terms. 3. Import both files as per our standard procedure, explained in our guide here. Relevant Documentation: |
2 | 11 | 1 年, 10 月前 | ||
WP JobSearch issue
发起人: John 中: English Support |
2 | 2 | 2 年前 | ||
WPML price issue
发起人: John 中: English Support |
2 | 6 | 2 年, 1 月前 | ||
Mobile nav bar
发起人: John 中: English Support |
2 | 2 | 2 年, 1 月前 | ||
Jupiter theme can't translate portfolio slug
发起人: John 中: English Support |
2 | 5 | 2 年, 3 月前 | ||
Custom post type couldn't change the slug
发起人: John 中: English Support |
3 | 11 | 2 年, 4 月前 | ||
Scheduled sale price mixes the pricing with default language part 2
发起人: John 中: English Support |
2 | 9 | 2 年, 5 月前 | ||
Performance issues
发起人: John 中: English Support |
2 | 11 | 2 年, 6 月前 | ||
Product Feed PRO for WooCommerce – Issue with get product currency
发起人: John 中: English Support |
2 | 4 | 2 年, 8 月前 | ||
Translation doesn't update
发起人: John 中: English Support |
3 | 7 | 3 年, 4 月前 | ||
Phlox pro not showing on frontent
发起人: John 中: English Support |
1 | 1 |
3 年, 4 月前
John |
||
Invalis payment method.
发起人: John 中: Chat Support |
1 | 2 |
3 年, 4 月前
|