למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
Import content with WPAllImport in main lang with option to duplicate to other WPML languages, at th…
נפתח על ידי: The J
ב: English Support
Problem: function wpml_duplicate_post_to_all_languages($post_id) {
$default_lang = apply_filters( 'wpml_default_language', null );
$current_lang = apply_filters( 'wpml_current_language', null );
// Only duplicate if we're importing in the default language
if ( $current_lang !== $default_lang ) {
return;
}
$languages = apply_filters( 'wpml_get_active_languages', null, array( 'skip_missing' => 0 ) );
foreach ( $languages as $lang_code => $lang_info ) {
if ( $lang_code === $default_lang ) {
continue;
}
$existing_translation_id = apply_filters( 'wpml_object_id', $post_id, get_post_type( $post_id ), false, $lang_code );
if ( ! $existing_translation_id ) {
do_action( 'wpml_make_post_duplicates', $post_id );
}
}
}Ensure that all important fields for your import are set to "Copy" in WPML → Settings → Custom Field Translation. We recommend testing this function on a staging site first. If this solution does not apply to your case, or if it seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If issues persist, we highly recommend opening a new support ticket at WPML support forum. |
|
0 | 3 | לפני חודש 1, שבוע 3 | |
|
Media Translation – Keep the same images without duplication or translation
נפתח על ידי: The J
ב: English Support
Problem: DELETE from wp_icl_translations WHERE element_type="post_attachment"; 2. Clean up the wp_posts table by executing this query: DELETE from wp_postmeta WHERE meta_key="wpml_media_processed"; 3. To prevent WPML from syncing the media again, navigate to WPML > Settings > Post Type Translation and set Media (attachment) to "Not translate". If this solution does not apply to your case, or if it seems outdated, we highly recommend checking 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 further assistance is needed, please open a new support ticket at WPML support forum. |
|
3 | 13 | לפני שנה 1, חודש 8 | |
|
ACF Options Page – Cant translate values
נפתח על ידי: The J ב: English Support |
|
3 | 8 | לפני שנה 2, חודש 5 | |
|
WP ALL Import Error
נפתח על ידי: The J ב: English Support |
|
2 | 5 | לפני שנה 3, חודש 3 | |
|
Database errors
נפתח על ידי: The J ב: English Support |
|
2 | 9 | לפני שנה 3, חודש 8 | |
|
Database errors
נפתח על ידי: The J ב: English Support |
|
1 | 2 |
לפני שנה 3, חודש 8
|
|
|
WPML doesn't display JS string translations for plugin
נפתח על ידי: The J ב: English Support |
|
2 | 9 | לפני שנה 3, חודש 8 | |
|
Unable to import PO for English translations
נפתח על ידי: The J ב: Chat Support |
|
1 | 2 |
לפני שנה 3, חודש 8
|
|
|
element_id and type do not match for element_id
נפתח על ידי: The J ב: English Support |
2 | 2 |
לפני שנה 3, חודש 8
The J |
||
|
PHP Fatal error: No trid for product variation in secondary language
נפתח על ידי: The J ב: English Support |
1 | 2 | לפני שנה 3, חודש 8 | ||
|
import translations
נפתח על ידי: The J ב: Chat Support |
|
1 | 2 |
לפני שנה 3, חודש 8
|