This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Compatibility
This topic contains 0 replies, has 0 voices.
Last updated by Jeffrey Edison 18 hours, 52 minutes ago.
Assisted by: Itamar.
Author | Posts |
---|---|
March 16, 2025 at 4:37 pm #16821989 | |
Jeffrey Edison |
Background of the issue: I have spent quite some time researching what could go wrong between WPML and ACF (ACFML 2.1.5), but cannot find a solution. Symptoms: Questions: |
March 16, 2025 at 4:50 pm #16822061 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, This ticket has been inactive for quite a while. I didn't get a reply from you. So, I've transformed this chat into a support ticket because you may still need our help. If you do, please reply to this ticket, and one of our supporters will continue helping you. Is htis the sidebar with the problem? If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply. |
March 16, 2025 at 5:02 pm #16822093 | |
Jeffrey Edison |
Yes, those are the sidebars with the problem |
March 16, 2025 at 5:38 pm #16822163 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for the access details. In the begining you shared the code which created the sidebar. FOr some reason I cann ot see it anymore in this ticket. Can you please share with me the code again? Thanks, |
March 17, 2025 at 12:38 pm #16824590 | |
Jeffrey Edison |
Here is the code |
March 17, 2025 at 12:39 pm #16824593 | |
Jeffrey Edison |
The ACF field group is called: Sidebar box (sidebar_item) |
March 18, 2025 at 9:45 am #16828909 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Thanks for adding this information. Are you sure everything is all right with the Sidebar box field group? 1. The Sidebar box field group does not have any sub-fields. Only the main parent repeater field (sidebar_item). 2. The field group is assigned to the hidden link">Services page. But you told me that the problem is on the hidden link">Accounting page. For points 1 and 2, Please see the attached screenshot sidebar-box-group.jpg. 3. Repeater fields are added with the ACF Pro plugin. However, you are not using the Pro plugin. Please see the attached screenshot no-acf-pro.jpg. You have installed the Advanced Custom Fields: Repeater Field plugin, a very old plugin by the original author of ACF. This plugin is not supported anymore. You can see a reference for this here. hidden link
To correct this issue, follow these steps. 1. Install the ACF Pro plugin. Also, please ensure to follow our ACF guide here (main guide). Regards, |
March 20, 2025 at 11:50 am #16839805 | |
Jeffrey Edison |
Hi, Thanks - I did not see your response previously, but have now turned on email updates for responses. 1) The sidebar_item automatically has a sub-field "box_cotent" which you can see on the Services page and its translations to maintain the value. Recommended steps: I have followed the steps on the ACF/WPML guide. |
March 23, 2025 at 12:22 pm #16848560 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Thanks for your detailed explanation. You have a custom solution that we can't support at this point. In general, supporting custom code is out of the scope of our support forum. However, we try our best to help with custom code when a client presents it and explains what they expect to get. However, in your case, the old Advanced Custom Fields: Repeater Field plugin is not even supported by the authors of ACF, so naturally, it is also not supported by WPML. I can only consult our second-tier supporters about your code if things do not work when you use the ACF Pro plug, the plugin that is officially compatible with WPML. If you want, I can create a sandbox site for you to test things with ACF + Pro + WPML. Regards, |
March 23, 2025 at 12:58 pm #16848623 | |
Jeffrey Edison |
Thanks, it seems like the problem was this: So an inelegant solution was to check which language was active and get the correct post ID: elseif( get_language_shortcode() === 'ru' && have_rows('sidebar_item',9345) ): while ( have_rows('sidebar_item',9345) ) : the_row(); ?> |