このユーザーのお気に入りトピックはありません。
お気に入りフォーラムトピック
Forum Topics Created
状況 |
トピック
|
Supporter | 返信 | 投稿 | 経過時間 |
---|---|---|---|---|---|
Issue between portofolio and taxonomy
トピック作成者: John
トピック: 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 週前 | ||
We are having and issue with the scheduled prices
トピック作成者: John トピック: English Support |
2 | 17 | 4 ヶ月、 1 週前 | ||
Translating WooCommerce Parts Compatibility Editor
トピック作成者: John トピック: English Support |
2 | 6 | 7 ヶ月前 | ||
Session expired on checkout
1
2
トピック作成者: John トピック: English Support |
3 | 20 | 7 ヶ月前 | ||
WPML Translation editor missing strings
トピック作成者: John トピック: English Support |
2 | 3 | 7 ヶ月前 | ||
Follow up to Site Language resetting the cache
1
2
トピック作成者: John
トピック: English Support
Problem: Solution: We made a minor change to bypass the In the meantime, we suggest ignoring If this |
4 | 22 | 1 年、 1 ヶ月前 | ||
Scheduled sale price mixes the pricing with default language
トピック作成者: John トピック: English Support |
3 | 13 | 1 年、 3 ヶ月前 | ||
Wpml client location reset caching
1
2
トピック作成者: John トピック: English Support |
2 | 18 | 1 年、 4 ヶ月前 | ||
We have an issue with the emails
1
2
トピック作成者: John トピック: English Support |
2 | 17 | 1 年、 4 ヶ月前 | ||
Get post meta price doesn't return posta meta database value
トピック作成者: John トピック: English Support |
2 | 7 | 1 年、 6 ヶ月前 | ||
I have an issue with the strings from WooCommerce emails
1
2
トピック作成者: John トピック: English Support |
3 | 27 | 1 年、 7 ヶ月前 | ||
Split: I have an issue regarding translating some strings
トピック作成者: John トピック: English Support |
2 | 7 |
1 年、 8 ヶ月前
John |
||
I have an issue regarding translating some strings
トピック作成者: John
トピック: English Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 1 年、 8 ヶ月前 | ||
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 年、 8 ヶ月前 | ||
Split: Product template with Vega theme
トピック作成者: John トピック: English Support |
2 | 4 | 1 年、 9 ヶ月前 |