Cet utilisateur n'a pas de sujets favoris.
Sujets préférés du forum
Sujets de forum créés
Statut |
Sujet
|
Supporter | Les voix | Articles | Fraîcheur |
---|---|---|---|---|---|
Problem with Tag Translation via ACF and WPML
Démarré par: attilioC-2
en: English Support
Problem: // Assuming $image_id is already defined in your template as the ID of the main image.<br />$tag_ids = get_field('tags', $image_id); // Ensure 'tags' is the correct name of your ACF field<br /><br />if ($tag_ids) {<br /> echo '<span class="label-categories label-tags"><b>Tags: </b>';<br /> // Store the tags in an array to ensure uniqueness<br /> $displayed_tags = array();<br /><br /> foreach ($tag_ids as $tag_id) {<br /> // Get the current language<br /> $current_language = apply_filters('wpml_current_language', NULL);<br /><br /> // Get the translated term ID<br /> $translated_tag_id = apply_filters('wpml_object_id', $tag_id, 'post_tag', true, $current_language);<br /><br /> // Get the translated term object<br /> $tag = get_term($translated_tag_id);<br /><br /> if (!is_wp_error($tag) && !in_array($tag->term_id, $displayed_tags)) {<br /> echo '<a href="'. esc_url(get_term_link($tag)) .'" style="margin-right:5px">' . esc_html($tag->name) . '</a> ';<br /> $displayed_tags[] = $tag->term_id; // Add tag to the displayed list<br /> }<br /> }<br /> echo '</span>';<br />}<br /> If this solution does not resolve your issue or seems outdated, we 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 the problem persists, please open a new support ticket. |
2 | 13 | Il y a 3 mois et 3 semaines | ||
tag synchronization
Démarré par: attilioC-2 en: Chat Support |
1 | 2 |
Il y a 4 mois et 1 semaine
|
||
Tag translation synchronisation
Démarré par: attilioC-2 en: Chat Support |
1 | 2 |
Il y a 4 mois et 1 semaine
|
||
Duplicating tags in the second language
Démarré par: attilioC-2 en: English Support |
2 | 4 | Il y a 4 mois et 1 semaine | ||
Translations for tags in the second language are not displayed
Démarré par: attilioC-2
en: English Support
Problem: Solution: If this solution does not resolve your issue, or if it seems outdated, 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 | 12 | Il y a 4 mois et 2 semaines | ||
Problems with matching translated tag posts
Démarré par: attilioC-2 en: Chat Support |
1 | 2 |
Il y a 4 mois et 2 semaines
|
||
In the mobile verision you do not see the Overlay Menu for the second language,
Démarré par: attilioC-2
en: English Support
Problem: Solution: If the theme is not certified, you might encounter issues with multilingual functionality. In the theme file /wp-content/themes/marquez/block-parts/overlay_navigation.php , the theme author uses a custom function to display the navigation menu. We recommend replacing this custom function with the standard WordPress function wp_nav_menu() to ensure compatibility with WPML. Here is an example of how you can adjust the code: <div class="column width-12"> <nav class="overlay-navigation nav-block pull-left clear-float-on-mobile"> <span class="menu-title"><?php echo esc_html($thememountain_overlay_secondary_menu_title); ?></span> <?php wp_nav_menu( array( 'theme_location' => 'overlay_menu' ) ); ?> </nav> </div> For more information on how to use wp_nav_menu() , please refer to the WordPress Developer Documentation. Please note that custom code assistance is beyond the scope of WPML support. If you need help with custom code, consider contacting one of our certified partners. Keep in mind that the theme's last update was in 2017, which is quite outdated. We recommend using a theme from the list of compatible themes to ensure proper content translation on your site. If the solution provided here is not relevant to your case, either because it's outdated or not applicable, we highly recommend checking related known issues on the WPML Known Issues page, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket. |
3 | 8 | Il y a 6 mois et 2 semaines | ||
WPML chat support ticket by attilioC-2 – 1714474927
Démarré par: attilioC-2 en: Chat Support |
1 | 2 |
Il y a 6 mois et 2 semaines
|
||
Non visualizzo la traduzione delle stringhe
Démarré par: attilioC-2 en: Assistenza in italiano |
2 | 4 | Il y a 4 années et 2 mois | ||
Problem with old chrome version
Démarré par: attilioC-2 en: English Support |
2 | 2 | Il y a 4 années et 3 mois |