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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: America/Los_Angeles (GMT-07:00)
Tagged: Exception
This topic contains 19 replies, has 2 voices.
Last updated by Bobby 1 year, 5 months ago.
Assisted by: Bobby.
Author | Posts |
---|---|
October 12, 2023 at 3:22 pm #14567259 | |
stefanE-2 |
I am trying to: add multilanguage to a Site. In there are some Buttons with links wich leads to external Sources. In the backend it's configurable via Advanced Custom Fields. But if i set the url in all languages like it should be and if i change the default language page. The autotranslate overwrite all the urls. I changed the Acf Settings how the field should be translatet. I tried copy once, don't translate. But this isn't doing the job. Also in the translation manger missing the urls. What happen? Link to a page where the issue can be seen: hidden link The Button: Aperçu des bons d’achat I expected to see: The button should lead to the french version /fr of the site Instead, I got: The german version /de on the site |
October 13, 2023 at 5:48 am #14569785 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
I would like to request temporary access (wp-admin and FTP) to your site to test the issue. **Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken ** I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/ NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin. Thank you, |
October 13, 2023 at 11:01 pm #14575671 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
If I understand correctly the button in the French page should lead to "hidden link" right? instead it remains leading to the DE version of the external site. Since your site's default language is German this field is set to copy which it does into the translation. Since the URL is external the system would not known how to translate it, even if /fr/ was added it would ended up leding to the wrong URL still. Instead, do this and let me know your results, please: - Go to pages and edit your page in German OR directly go to the FR translation backend and manually edit it here then update the page - If you don't have the link you can do this by viewing the translation in the front end - click on the button at the top bar "edit page" (not edit translation) and dismiss the warning |
October 16, 2023 at 9:02 am #14582635 | |
stefanE-2 |
Hi thanks for your answer Yes I know. This would be perfect if the french version wouldn't be overwritten every time i do a change on the german site. I testet the settings. Therefore is the field set to copy. But the other settings don't work eather. It is overwritten every time. Thanks for you help. |
October 17, 2023 at 12:15 am #14589187 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hello, I was able to reeproduce the issue. Please check now: To resolve I did the following: - Go to Field Groups -> Edit CTA -> Change preference from 'expert' to 'Different fields across languages' and save. - Change it back to "expert" and edit the URL to be a 'url' field along with ' do not translate' - Went to the Restaurant page -> edit -> switch to English using the language switcher (dismiss any warnings) and add the new URL then update - Go back to German make a small edit -> update Now it remains showing the correct URL. |
October 17, 2023 at 8:44 am #14591453 | |
stefanE-2 |
Hi tanks for your investigation. Sadly it's not working. We have multiple ACF which have the same problem. Like "Content and Image", "Contetnt", "Accordion" and "CTA". I testet on every ACF and it's not working. Is there any possibility to have this bug fixed in the near future? Or do you have an workaround for it? We are curently working since 2 Months at problems with implementing WPML and the customer is waiting. Could you provide us please a solution witch works with autotranslate. I think there is a problem, with how the translation is saved. Could this be a problem of servercaching? Or is the problem in the db? Thanks a lot. |
October 17, 2023 at 8:52 am #14591533 | |
stefanE-2 |
I dont know if this helps. But if i change the preference from expert to different fielts across languages and back, every time there is the same configuration. I think this config is the one wich is used from wpml. Because ther are the fileds wicht are set to copie. |
October 17, 2023 at 7:10 pm #14597491 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for updating me. Can you please let me know your results when you do this: " if i change the preference from expert to different fielts across languages and back, every time there is the same configuration." after you change it back to expert go back to the field you will notice it's set to "copy'" once you switch it to "do not translate" and update whaat are your results then? You will need to go back to the page -> manually edit the URL field and save and then it should not be overwritten again. |
October 18, 2023 at 8:26 am #14599973 | |
stefanE-2 |
Yes I tried this. But when i manually chanched the url and do another change on the default language every url field is written over with ther default language url. Every time. What i meant with: "if i change the preference from expert to different fielts across languages and back, every time there is the same configuration." I search for the underlyning problem witch cause this. And i found out, that the configuration is not or strange safed. Please go ahead and try by yourself. Do all the changes on every langugage wait 10 min go to the default language change something and there is after 1 min on every language the same url. |
October 18, 2023 at 9:14 pm #14608919 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hello, - I am not able to reproduce this behavior with a standard URL ACF Field (not a block one) - Your ACF settings HAVE to be set to "Expert" mode & set to "do not translate" and not "Different fields across languages", this mode will cause the content to copy I created a test page to do some of this testing you can see it here: German (default language): #1 #2 English (translation) to compare: Please do the following: 1. Go to this sandbox I created and upload the ACF Pro version 2. Create a similar block to CTA (how are you creating this block? ) 3. Let me know your results, is the issue still happening in the clean environment of the sandbox? |
October 18, 2023 at 10:02 pm #14609057 | |
stefanE-2 |
Hi I tried this on the sandbox. There is the same problem. Please try to change something outside the box. Thanks a lot |
October 18, 2023 at 10:03 pm #14609063 | |
stefanE-2 |
hidden link |
October 18, 2023 at 10:11 pm #14609067 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for testing this, our team will do some debugging tests and I will update you. Regarding the block, how are you creating/adding it? |
October 18, 2023 at 10:19 pm #14609069 | |
stefanE-2 |
In the functions.php file: add_action('acf/init', 'my_acf_init_block_types'); if( function_exists('acf_register_block_type') ) { acf_register_block_type(array( |
October 20, 2023 at 7:22 am #14620787 | |
stefanE-2 |
Could you give me some expectations? |
The topic ‘[Closed] Urls in ACF Fields are auto translated’ is closed to new replies.