Skip Navigation

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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 4 replies, has 0 voices.

Last updated by Andreas W. 2 days, 15 hours ago.

Assisted by: Andreas W..

Author Posts
January 31, 2025 at 4:16 pm #16656608

heinzV-3

Background of the issue:
I am trying to use the dropdown to change the URL parameters on the page to translate content. The site I need help with is hidden link.

Symptoms:
When I change the URL parameters to translate the page, all the content that is through ACF disappears.

Questions:
How do we keep the ACF content on the page after changing the language?

February 1, 2025 at 5:24 pm #16658686

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please install our addon "Advanced Custom Fields Multilingual".

You can find it at Plugins > Add new > Commercial (tab).

If you plan to create the translations with the WordPress Editor, make sure to set each field group to "Different fields across languages".

Also, make sure that on the original content, inside the right sidebar of the WordPress Editor the "WordPress Editor" is set as the translation method for the page or post.

Finally, make sure that at WPML > Settings > Post Type Translation the "ACF Field Groups" are set to "Not translate".

This usually should solve the issue.

Complete guide:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

Best regards
Andreas

February 5, 2025 at 9:06 pm #16673013

heinzV-3

I set it to Translatable but it still makes the content dissappear. These custom fields are on the page template and on the fields from the options page.

Capture.PNG
February 5, 2025 at 10:46 pm #16673169

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The "Field Groups" field should be set to "Not translatable".

The custom fields for pages, posts, or templates will be translated when translating each content with the WPML Translation Editor or WordPress Editor, but you need to choose the specific translation method for each field group.

WPML Translation Editor > Same fields across languages
WordPress Editor > Different fields across languages

ACF Option pages can only be translated directly on the options page while switching the language inside the top admin bar. For this field group the setting "Different fields across languages" would be advisable.

February 6, 2025 at 8:06 pm #16677168

heinzV-3

That was able to make it so the nav and footer that came from the option pages showed up but they aren't being translated even when I try to edit it under the spanish mode.

I'm also not sure why but now the spanish url are redirectly to pages that don't exist for example /es/login -> /es/?page_id=133 leads to a 404. Is there any way to set it to the actual page but the spanish version of it?

It's still not showing the acf field content for the page that i set up and still not sure why?

February 6, 2025 at 8:21 pm #16677210

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi,

I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.

Best regards
Andreas

February 7, 2025 at 7:02 pm #16681123

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I would suggest using "Different languages in directories":

hidden link > English
hidden link > Spanish

The language as a parameter option can cause unexpected issues and is not recommended when it comes to SEO.

The Header & Footer Options are working. If you want to use different texts and links in different languages, you need to change the translation preference for these groups to "Different fields across languages".

Your pages were in the trash, I recreated them now.

For the Login page, the issue is that there was spending "Review" (eye symbol) which can not longer be completed, at the translation mode was changed from "Translate Everything Automatically" to "Translate What You Choose". I have fixed this issue now.

Further, if you use a page-login.php file as a template, then the page needs to have the slug "login" in each language:

hidden link

February 7, 2025 at 8:42 pm #16681230

heinzV-3

Does every page need to have a copy in the pages with a different language version? I have another site that I manage that had this plugin but it didn't have a copy of the page for each language?

February 7, 2025 at 9:42 pm #16681321

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

If you want different text in each language, the pages and posts will need to be translated.

WPML will create one post or page for each language.

On your old site you might have set WPML's post type settings to "Translatable – use translation if available or fallback to default language" which will display the original content in all languages, as long a translation does not exist.

This is not recommendable when using WooCommerce.

February 7, 2025 at 10:08 pm #16681353

heinzV-3

For the acf links on the header that i put through the option pages, they don't automatically redirect to the spanish page, do those links need to be manually changed as well?

February 7, 2025 at 10:26 pm #16681376

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, you will need to set the field groups in ACF to "Different fields across languages" and after that edit the options page on each language by switching the language inside the top admin bar.