이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
포럼 주제가 생성되었습니다.
상태 |
주제
|
서포터 | 목소리 | 게시물 | 선도 |
---|---|---|---|---|---|
hreflang x-default is missing from some pages.
시작한 사람: kristinaK-10
안에: English Support
Problem: add_filter('wpml_hreflangs', function($hreflang_items) { if (empty($hreflang_items['x-default']) && is_singular()) { $post_type = 'post_' + get_post_type(); $translations = apply_filters('wpml_get_element_translations', [], apply_filters('wpml_element_trid', false, get_the_ID(), $post_type), $post_type); if (!empty($translations)) { foreach ($translations as $lang => $item) { if (empty($item->source_language_code)) { $x_default = $lang; break; } } } if (isset($x_default, $hreflang_items[$x_default])) { $hreflang_items['x-default'] = $hreflang_items[$x_default]; } } return $hreflang_items; }); NOTE: Always have a recent and working backup before making any changes recommended by our team or a 3rd party. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at WPML Support Forum. |
2 | 5 | 2 년, 6 월 전에 | ||
hreflang x-default is missing from some pages.
시작한 사람: kristinaK-10 안에: English Support |
2 | 8 | 2 년, 7 월 전에 | ||
language switcher with the flag and the lannguege code
시작한 사람: kristinaK-10 안에: English Support |
3 | 6 | 2 년, 9 월 전에 | ||
Rewrite rule of page url
시작한 사람: kristinaK-10 안에: English Support |
2 | 6 | 2 년, 10 월 전에 | ||
Default language code in url
시작한 사람: kristinaK-10 안에: English Support |
2 | 4 | 2 년, 10 월 전에 | ||
Pop up when tranlsation does not exist
시작한 사람: kristinaK-10 안에: English Support |
2 | 2 |
2 년, 10 월 전에
kristinaK-10 |