Home›Support›English Support›[Resolved] Translating some ACF fields images type content; topbar_icons (ACF field name) and footer icons too!...
[Resolved] Translating some ACF fields images type content; topbar_icons (ACF field name) and footer icons too!...
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to retrieve the Spanish version of ACF image URLs in the backend for their WordPress site, which affects the display of the 'header top bar' for different language versions. Solution: To resolve this issue, we recommend the following steps: 1. Navigate to WPML-> Settings-> Post Type Translation. 2. Set the following post types to be not translatable: - Field Groups (acf-field-group) - Taxonomies (acf-taxonomy) - Post Types (acf-post-type) - Options Pages (acf-ui-options-page) 3. Click 'Save'. 4. Go to 'General Settings'. 5. Switch the language using the top admin bar. 6. Add the translated settings. For further guidance on translating Option pages, please refer to this guide.
If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
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.
Background of the issue:
I'm trying to get the same php ACF field image values (urls) we are getting using the English Site version, but for the spanish one, in order to show up the same 'header top bar' of the Site for both languages; *The problem is that we are not finding a way to translate this ACF images urls; I'm not getting any value in the backend (php) for the spanish version, so we are not finding a solution to show the topbar_icons (ACF field name), that belong to the 'General Settings' ACF field group on the WordPress admin.
Symptoms:
I'm not getting any value in the backend (PHP) for the Spanish version of the ACF image fields.
Questions:
How can I translate ACF image URLs for the Spanish version of my site?
Why am I not getting any value in the backend for the Spanish version of the ACF fields?
Thanks for contacting WPML forums support. I'll be glad to help you today.
1) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.
Thanks for updating the account. Please check the following steps:
1- Go to WPML-> Settings-> Post Type Translation
2- Set the following post types to be not translatable
* Field Groups (acf-field-group)
* Taxonomies (acf-taxonomy)
* Post Types (acf-post-type)
* Options Pages (acf-ui-options-page)
3- Click save
4- Go to General Settings
5- Switch the language using the top admin bar
6- Add the translated settings
Thanks for your time! Is there any way to get this automatically done, instead of having to translate and load all the images and links again inside 'general settings'? thanks so much.
1) I'm afraid that options pages can only be translated manually, as explained in the guide.
2) We try to keep one issue per ticket in our forum. As the original issue is resolved, may I kindly ask you to open a new ticket for your additional question?
Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.
As a general debugging step, please check the WP debug log on your local copy and check for any errors that might cause the crash.