Este usuário não tem tópicos favoritos.
Tópicos favoritos do fórum
Tópicos do fórum criados
Status |
Tópico
|
Apoiador | Vozes | Posts | Novidades |
---|---|---|---|---|---|
Values in an ACF repeater won’t show up if they’re only filled in a translated language
Iniciado por: lawrenceA-3
em: English Support
Problem: wpml_object_id hook to retrieve the correct post ID in the translated language. Here’s a step-by-step guide on how to implement this: <?php<br />$repeater_field = 'rep'; // Change this to your repeater field name<br />$text_sub_field = 'text'; // Change this to your text field inside the repeater<br />$translated_post_id = apply_filters('wpml_object_id', get_the_ID(), 'post');<br />if (have_rows($repeater_field, $translated_post_id)) {<br /> echo '<ul>'; // Start a list for better formatting<br /> while (have_rows($repeater_field, $translated_post_id)) {<br /> the_row();<br /> $text_value = get_sub_field($text_sub_field);<br /> if ($text_value) {<br /> echo '<li>' . esc_html($text_value) . '</li>';<br /> }<br /> }<br /> echo '</ul>'; // Close the list<br />} else {<br /> echo '<p>No data available.</p>';<br />}<br />?> For more details on using the wpml_object_id hook, please visit https://wpml.org/wpml-hook/wpml_object_id/. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific 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 at our support forum. |
|
0 | 4 | 2 meses, 4 semanas atrás | |
Scanning for strings never finishes
Iniciado por: lawrenceA-3 em: English Support |
|
0 | 3 | 3 meses, 1 semana atrás | |
Custom post type slug translation showing up wrong in WPML
Iniciado por: lawrenceA-3 em: Chat Support |
|
0 | 2 | 7 meses, 1 semana atrás | |
Remove ACF field labels from Advanced Translation Editor
Iniciado por: lawrenceA-3 em: Chat Support |
|
1 | 2 |
7 meses, 3 semanas atrás
|
|
Updating WPML in WordPress shows: "Download mislukt. (Not Found)"
Iniciado por: lawrenceA-3 em: English Support |
2 | 2 |
1 ano, 11 meses atrás
lawrenceA-3 |
||
How do I tell WPML to use the dutch field in one language and the english field in the other?
Iniciado por: lawrenceA-3 em: Chat Support |
|
1 | 2 |
2 anos, 5 meses atrás
|
|
Elementor translation with Droow theme
Iniciado por: lawrenceA-3 em: English Support |
|
2 | 2 | 2 anos, 7 meses atrás |