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.

This topic contains 5 replies, has 3 voices.

Last updated by rogierO 4 years, 9 months ago.

Assisted by: Itamar.

Author Posts
May 19, 2020 at 9:50 am #6165785

rogierO

I am trying to:
Edit content in a [age or post

Link to a page where the issue can be seen:
Issue is only visible in the backend

I expected to see:
Fields and options only displayed once, like other blocks

Instead, I got:
Fields and options displayed twice.

Some ACF blocks in the backend display two sets of fields. One set I can edit (the 2nd set of fields) the first set, does not display in the frontend.
Interestingly, it's the first set of field_id's that match in the Json code in the page. Not the second set.

This only happens in some ACF blocks. Not all.
I've matched all the translation settings between working blocks and blocks that duplicate fields.

Thanks in advance!

Regards, Peter

Screenshot_2020-05-19 Bewerk news ‹ Observator — WordPress.png
Screenshot_2020-05-19 Edit Field Group ‹ Observator — WordPress.png
May 20, 2020 at 12:18 pm #6177317

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support!

Can you tell us perhaps what makes these fields distinct from the ones where it doesn't happen?

What do you mean by this?

it's the first set of field_id's that match in the Json code in the page.

Regards,
Bruno Kos

May 20, 2020 at 4:43 pm #6179801

rogierO

Hi Bruno,

Thanks for your reply!

There is only one set of fields and options defined in ACF. Yet, in the editor the block displays 2 sets.
There should only be 'content' and 'settings' tabs.

One of the field sets in the editor doesn't display on the website.

The code of the block looks like this:

<!-- wp:acf/tekst-media {"id":"block_5ec55b797b38e","name":"acf/tekst-media","data":{"field_5d72356b8886b":"this does not show","field_5d72357e8886c":"this does not show","field_5d72358a8886d":"this does not show","field_5d7235908886e":"this does not show","field_5d72538f11878":"0","field_5d7235248886a":"0","field_5d724558078e2":"0","field_5d72456c078e3":"0","field_5d722b4d5faa4":"This shows","field_5d722b9cc2a61":"This shows","field_5d722b4d5facc":"This shows","field_5d722ba5c2a63":"This shows","field_5d7253a4698e2":"0","field_5d722f1605f0d":"0","field_5d723a1fdf5ec":"0","field_5d723a35df5ed":"0"},"mode":"edit"} /-->

One of the fields that doesn't show on the website has the ID:

field_5d72356b8886b

Is the field that matches the key in ACF

Array
(
    [ID] => 4040
    [key] => field_5d72356b8886b
    [label] => Titel
    [name] => titel
....

One of the fields that show on the website

field_5d722b4d5faa4

I cannot find in ACF.

¯\_(ツ)_/¯

What could cause my ACF fields being displayed twice in the editor?

Thanks in advance!

Regards, Peter

6165785-Screenshot_2020_05_19_Bewerk_news_Observator_WordPress.png
May 25, 2020 at 3:51 pm #6212333

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi.

This is a weird case. But are you sure that it is related to WPML and ACFML?

From looking at your screenshots I can see that you have each of the fields in the Blok: Tekst + media field group twice. The fields with the names 'title' and 'title_r' and 'tekst' and 'tekst_r'.
This looks like the reason that you two fields when you edit the post.
Since it is happening in English the default language of your site, I wonder if it is a problem from ACFML.
Did you create those extra fields?
If you deactivate WPML and all its add-ons including ACFML, does the issue persists or not?

Regards,
Itamar.

May 27, 2020 at 12:21 pm #6229271

rogierO

Hi Itamar,

You're right. the issue was nog WPML related, but ACF related.

When I see duplicate content, I automatically assume it's related to WPML.
Sorry about that. (⁄ ⁄•⁄ω⁄•⁄ ⁄)

Thanks for your assistance!

Regards,
Peter