このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
| ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着度 |
|---|---|---|---|---|---|
|
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 | 9ヶ月、 1週前 | |
|
Scanning for strings never finishes
開始者:lawrenceA-3 カテゴリ:English Support |
|
0 | 3 | 9ヶ月、 2週前 | |
|
Updating WPML in WordPress shows: "Download mislukt. (Not Found)"
開始者:lawrenceA-3 カテゴリ:English Support |
2 | 2 |
2年、 5ヶ月前
lawrenceA-3 |
||
|
Elementor translation with Droow theme
開始者:lawrenceA-3 カテゴリ:English Support |
|
2 | 2 | 3年、 1ヶ月前 |