ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
language switcher – custom post type archive links to home instead of translation if no posts availa…
เริ่มโดย: andiG
ใน: English Support
Problem: function force_cpt_archive_language_urls($post_type = 'post-type-name') {
$languages = apply_filters( 'wpml_active_languages', NULL, array(
'skip_missing' => 0
) );
if ( !empty($languages) ) {
foreach ($languages as $code => &$lang) {
// Manually generate the archive link for the CPT in this language
$translated_slug = apply_filters( 'wpml_translate_single_string', $post_type, 'slug-name', "URL slug: $post_type", $code );
$lang['url'] = home_url( '/' . $code . '/' . $translated_slug . '/' );
}
}
return $languages;
}Please note, that this is a custom solution and might not have been tested in every setup. It's beyond WPML's built-in functionality, so our support doesn’t cover debugging custom code. 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. |
|
1 | 7 | 6 months, 3 weeks มาแล้ว | |
|
How to disable Message about Admin Language
เริ่มโดย: andiG ใน: English Support |
|
0 | 3 | 8 months, 2 weeks มาแล้ว | |
|
Preview of published page/post shows current content content, instead of change
เริ่มโดย: andiG ใน: English Support |
|
2 | 2 | 1 years, 11 months มาแล้ว | |
|
Custom Post Types with ACF Pro, Permalink Errors on Updates
เริ่มโดย: andiG ใน: English Support |
|
2 | 5 | 1 years, 12 months มาแล้ว | |
|
ACF Post Type: where can the CPT archive page slug be translated
เริ่มโดย: andiG ใน: English Support |
|
2 | 4 | 2 years มาแล้ว | |
|
WPML breaks AAM Advanced Access Manager Settings
เริ่มโดย: andiG ใน: English Support |
|
2 | 10 | 2 years, 3 months มาแล้ว | |
|
translation is not stored in DB for custom post type slug
เริ่มโดย: andiG ใน: English Support |
|
2 | 4 | 2 years, 10 months มาแล้ว |