Questo utente non ha argomenti preferiti.
Argomenti preferiti del forum
Argomenti del forum creati
Stato |
Argomento
|
Sostenitore | Voci | Messaggi | Freschezza |
---|---|---|---|---|---|
hreflang x-default is missing from some pages.
Iniziato da: kristinaK-10
in: 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 anno, 8 mese fa | |
hreflang x-default is missing from some pages.
Iniziato da: kristinaK-10 in: English Support |
|
2 | 8 | 2 anno, 9 mese fa | |
language switcher with the flag and the lannguege code
Iniziato da: kristinaK-10 in: English Support |
|
3 | 6 | 2 anno, 11 mese fa | |
Rewrite rule of page url
Iniziato da: kristinaK-10 in: English Support |
|
2 | 6 | 2 anno, 12 mese fa | |
Default language code in url
Iniziato da: kristinaK-10 in: English Support |
|
2 | 4 | 3 anno fa | |
Pop up when tranlsation does not exist
Iniziato da: kristinaK-10 in: English Support |
|
2 | 2 |
3 anno fa
kristinaK-10 |
|
WPML chat support ticket by kristinaK-10 – 1647869929
Iniziato da: kristinaK-10 in: Chat Support |
|
1 | 1 |
3 anno fa
|