Questo utente non ha argomenti preferiti.
Argomenti preferiti del forum
Argomenti del forum creati
| Stato |
Argomento
|
Supporter | Voci | Post | Freschezza |
|---|---|---|---|---|---|
|
Custom Content Feed Block
Iniziato da: Rich Staats
in: English Support
Problem: wpml_object_id hook to ensure that the $post_id refers to the translated post in the currently active language. Here is how you can implement it: // will return the post ID in the current language for post ID 1 echo apply_filters( 'wpml_object_id', 1, 'post' ); // will return the category ID in the current language for category ID 4. If the translation is missing it will return the original (here: category ID 4) echo apply_filters( 'wpml_object_id', 4, 'category', TRUE ); // will return the German attachment ID for attachment ID 25. If the translation is missing it will return NULL echo apply_filters( 'wpml_object_id', 25, 'attachment', FALSE, 'de' ); Ensure that the post has an existing translation. For further guidance, refer to the wpml_object_id documentation and the full list of WPML hooks at WPML hooks reference. If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance at WPML support forum. |
|
0 | 7 | 5 giorno fa | |
|
The logo in our header disappears when switching a language
Iniziato da: Rich Staats in: English Support |
|
0 | 5 | 5 giorno fa | |
|
Custom Meta Terms are now showing up
Iniziato da: Rich Staats in: Chat Support |
|
1 | 2 | 1 settimana, 4 giorno fa | |
|
Translating content that is pulled dynamically (Related Content)
Iniziato da: Rich Staats in: Chat Support |
|
0 | 2 | 1 settimana, 5 giorno fa |