هذا المستخدم ليس لديه مواضيع مفضلة.
مواضيع المنتدى المفضلة
تم إنشاء مواضيع المنتدى
الحالة |
عنوان
|
مؤيد، مشجع، داعم | أصوات | المقالات | نضارة |
---|---|---|---|---|---|
WPML & Yoast: Metadata not working for duplicated posts
بدأ ب: alfredoR في: Chat Support |
0 | 2 | قبل 6 أيام، 9 ساعات | ||
WPML & Yoast: Metadata not working for duplicated posts
بدأ ب: alfredoR في: Chat Support |
1 | 2 | قبل 6 أيام، 10 ساعات | ||
Canonical tag is not created
بدأ ب: alfredoR
في: Soporte en español
Problem: In cases where a post or page in another language isn’t connected to the default language version, it won’t have the x-default value. We are aware of this and have taken it as a feature request. Meanwhile, you can use a code workaround suggested in our forum: https://wpml.org/forums/topic/hreflang-x-default-is-missing-from-some-pages-2/#post-11625629 If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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. |
0 | 5 | قبل 1 شهر، أسبوعين | ||
Have languages that are duplicates from others
بدأ ب: alfredoR
في: English Support
Problem: add_action( 'wp_insert_post', 'my_duplicate_on_publish' ); function my_duplicate_on_publish( $post_id ) { global $post; if (is_null($post) || (defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE) || (isset( $post->post_type ) && $post->post_type == 'revision')) { return $post_id; } remove_action( 'wp_insert_post', 'my_duplicate_on_publish' ); $is_translated_in_es_mx = apply_filters( 'wpml_element_has_translation', '', $post_id, 'es-mx' ); if ( !$is_translated_in_es_mx ) { do_action( 'wpml_admin_make_post_duplicates', $post_id ); do_action( 'wpml_set_element_language_details', [ 'element_id' => $post_id, 'element_type' => 'post_' . $post->post_type, 'trid' => wpml_get_content_trid( 'post_' . $post->post_type, $post_id ), 'language_code' => 'es-mx', 'source_language_code' => 'es' ] ); } add_action( 'wp_insert_post', 'my_duplicate_on_publish' ); return $post_id; } This script checks if a post is a new or updated Spanish post and duplicates it for Spanish (Mexico) if no translation exists. Modify the condition inside the function if you want to limit this behavior to specific post types. 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 further assistance is needed, we encourage you to open a new support ticket. |
1 | 3 | قبل 1 شهر، 3 أسابيع | ||
Migrating from development site to production site
بدأ ب: alfredoR في: English Support |
2 | 6 | قبل شهرين، أسبوعين | ||
Traducción Slider Revolution
بدأ ب: alfredoR في: Soporte en español |
2 | 2 | قبل 3 سنوات، 10 أشهر |