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.

This topic contains 11 replies, has 2 voices.

Last updated by Carlos Rojas 3 months, 3 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
June 24, 2019 at 9:51 pm #4079909

sarahA-6

I have created an FAQ page, and have created a field group in Advanced Custom Fields to add relationship fields to that page. The relationship ACFs work well on the English version of the page, but things become very confusing when trying to get those fields to show on the translated versions of the FAQ page. It's unclear which settings I need to get each translation of the FAQ page to also use these ACFs.

Additionally, while the relationships will be the same, it will be alternate language versions of everything... so if the English FAQ page links relationships to pages: Question 1 and Question 2, then The Spanish FAQ page will link to the Spanish translations for Question 1 and Question 2. I've tried a few different approaches, but want to make sure we get this right.

June 25, 2019 at 1:10 pm #4084775

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

1.- Please install Advance Custom Fields Multilingual plugin (go to WPML -> Plugins -> Add New -> Commercial tab -> Download and install the plugin). Then visit this link where you will find our official documentation about ACF and WPML: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

2.- Please increase the PHP Memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );

- Add it above the line /* That's all, stop editing! Happy blogging. */

Kind regards,
Carlos

June 25, 2019 at 4:10 pm #4086145

sarahA-6

Thank you, Carlos

I have upped our WP_MEMORY_LIMIT, and enabled the additional plugin. I will look at the documentation for how to use that with our setup.

June 25, 2019 at 8:16 pm #4087071

sarahA-6

I have now looked through the documentation, and am not able to see the ACFs show on my translated page.

I have set up a user for you to take a look, but need the private fields to show on this thread so I can give you the login info.

----------

I have created an ACF Field Group called "Eos Product & Service FAQ":
hidden link

It is set to show on the page "Eos Product & Service FAQ" (you can see this under Location -> Rules on the above page.

Per your documentation, I have set "Translation preferences" to "Translate" on each of the 4 Relationship fields in the group. I have also set "Multilingual Content Setup" at the bottom of the Field Group page to "Make 'Field Groups' translatable".

...

I then go to the edit screen for my Page called "Eos Product & Service FAQ", and can see the ACFs showing there, as expected.
hidden link

Also, following your documentation, I have clicked the + sign next to the Spanish language on the edit screen for the page, and have created a simple stand-in translation of the page:
hidden link

This page does not show my ACFs.

...

The goal here is to have an FAQ page, and have 4 relationship ACFs where I can associate a bunch of custom posts from the CPT "FAQ Items"... this way FAQ items, broken into 4 groupings will show on the page. You can see this working nicely here:
hidden link

However, as stated, my ACFs do not show on the Spanish FAQ page.

June 26, 2019 at 10:41 am #4091633

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your message.

I have set your next message private where you will find the necessary fields to provide the access credentials in a secure way.

Regards,
Carlos

June 26, 2019 at 7:31 pm #4094785

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for the information provided.

Before we continue I need to ask you to update all outdated plugins and themes. Outdated functionalities can cause conflicts in the code.

Note: Please don't forget to create a full backup of the site before making any change.

Looking forward to your message.
Regards,
Carlos

June 26, 2019 at 9:25 pm #4095197

sarahA-6

Hi Carlos,
I have updated WordPress, the theme, and all plugins but one, due to it not wanting to let us because we're on a subdomain, not the registered domain. But that one shouldn't affect anything.

I also took a look around, and it appear that everything is behaving as it should, so I have not seen any hiccups introduced anywhere. The challenge above still remains though, and the site is now ready for your examination.

June 27, 2019 at 10:50 am #4099317

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your message.

I took a deeper look at this issue and consulted our specialists too. In this case I recommend you to follow the solution described in this similar ticket: https://wpml.org/forums/topic/synchronize-translated-acf-relationship-posts/ as this will be a better way to accomplish your goal.

Regards,
Carlos

June 27, 2019 at 6:11 pm #4101979

sarahA-6

Thank you for the suggestion, Carlos.

We wanted to use the ACF Relationship for a few reasons that don't work so well with the links:

- The link doesn't break if the post URL changes

- Intuitive interface that allows for easily masking which items show as choices, identifying and selecting, and then drag/drop ordering of items in the list.

Our problem so far is that the ACF Relationship fields just don't even show on the translated page. I had a thought, and am wondering if this could present a path...

Did I see somewhere a way to manually create separate pages/posts and identify them as the translations of the same post? If the system sees each as a completely separate post, I think I could map the ACF field group to them more easily. Then if WPML could see the separate posts as being English, Spanish, and French for the same post, we could have the best of both worlds. If separate items can in fact be bound together so they're defined as translations of each other, then I think this could solve it.

June 28, 2019 at 12:10 pm #4107221

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,
Thank you very much for your feedback.

I consulted our specialists about this issue and your propose won't work because you won't be able to add a display rule for pages in the secondary languages unless you translate the Field Groups which will make the translation process more complicated.

I would like to ask your authorization to make a copy of the site in order to escalated to our 2nd tier of support where our 2nd tier specialists will be able to take a deeper look at the issue and find a solution.

Looking forward to your message.
Regards,
Carlos

June 28, 2019 at 6:29 pm #4109869

sarahA-6

I could make 3 identical Field Groups, and and apply each to a separate page. The question remains though, did I understand correctly that WPML can let me take 3 independent pages and bind them together, defining them as translations for one another, as opposed to starting with one page, and using the translation tools to split them off?

July 1, 2019 at 6:55 am #4115909

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,

Yes, you can make what you suggest, but then you should be very careful and create the ACF groups in each language so you will be able to add the rule to appear in the right page (in the right language).

Regards,
Carlos