This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
状态 |
Topic
|
Supporter | Voices | 文章 | Freshness |
---|---|---|---|---|---|
Values in an ACF repeater won’t show up if they’re only filled in a translated language
Started by: lawrenceA-3
in: 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 | 3 weeks前 | |
Scanning for strings never finishes
Started by: lawrenceA-3 in: English Support |
|
0 | 3 | 4 weeks, 1 days前 | |
Custom post type slug translation showing up wrong in WPML
Started by: lawrenceA-3 in: Chat Support |
|
0 | 2 | 5 months前 | |
Remove ACF field labels from Advanced Translation Editor
Started by: lawrenceA-3 in: Chat Support |
|
1 | 2 |
5 months, 2 weeks前
|
|
Updating WPML in WordPress shows: "Download mislukt. (Not Found)"
Started by: lawrenceA-3 in: English Support |
2 | 2 |
1 years, 9 months前
lawrenceA-3 |
||
How do I tell WPML to use the dutch field in one language and the english field in the other?
Started by: lawrenceA-3 in: Chat Support |
|
1 | 2 |
2 years, 3 months前
|
|
Elementor translation with Droow theme
Started by: lawrenceA-3 in: English Support |
|
2 | 2 | 2 years, 5 months前 |