이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
포럼 주제가 생성되었습니다.
상태 |
주제
|
서포터 | 목소리 | 게시물 | 선도 |
---|---|---|---|---|---|
Values in an ACF repeater won’t show up if they’re only filled in a translated language
시작한 사람: lawrenceA-3
안에: 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 월 전에 | |
Scanning for strings never finishes
시작한 사람: lawrenceA-3 안에: English Support |
|
0 | 3 | 3 월, 1 주 전에 | |
Updating WPML in WordPress shows: "Download mislukt. (Not Found)"
시작한 사람: lawrenceA-3 안에: English Support |
2 | 2 |
1 년, 11 월 전에
lawrenceA-3 |
||
Elementor translation with Droow theme
시작한 사람: lawrenceA-3 안에: English Support |
|
2 | 2 | 2 년, 7 월 전에 |