Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Some icons were missing on secondary languages. Those icons are coming from an ACF field and translation preferences for this field was not correct.

Solution:
Here the field was an image.
- Go to "ACF > Field groups", edit the group and set that particular field to "Copy"
- Go back to your categories and update them so that the new translation preference is taken into account.

Relevant Documentation:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

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 10 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 8 months ago.

Assisted by: Nicolas V..

Author Posts
September 25, 2023 at 9:36 pm #14462401

raduV

I am trying to: Have the "features" and "cuisine" icons display correctly on all my recipes and blog pages

Link to a page where the issue can be seen: hidden link

hidden link

hidden link

I expected to see: hidden link

hidden link

Instead, I got: As you can see in the links above, the features and cuisines are displaying correctly on the english (main language) and romanian versions, yet they are bugging out for all the other languages. This happens across the whole website, here's some screenshots: hidden link

Also, as you can see from the first screenshot, the category icon is the same for both Italian and Romanian languages, yet only the Romanian one is displaying the icon..

September 25, 2023 at 9:37 pm #14462403

raduV

I have tried re-doing the media translation options, it didnt help.

September 26, 2023 at 1:38 pm #14467327

Nicolas V.
Supporter

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

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

Hello,

Welcome to the WPML support forum. I can see in the source code that instead of having the icon url you have the image ID on your secondary languages.

I'm not sure why you have that issue and I would need more information to identify the root cause.

Could you please tell me how do you insert those icons? Are they coming from a custom field (I see that you have ACF)? If so, please check in "ACF > Field groups" if you are returning the image URL or the image ID. What is the translation preference for that image field: Copy?

You mentioned "Media translation", do you have to use a different image in your secondary languages or use the same image?

What's the code you use in your template PHP to display that image?

Any information, screenshot or even a short video would be helpful.

September 26, 2023 at 3:09 pm #14468145

raduV

Hi Nicolas,

Thanks for the answer! Correct, it only has the image ID, but it's really weird that the bug happens on 4 languages, but not on the Romanian language, which is also secundar.

The icons have been added to the category icon in wordpress, then I've updated them in the taxonomy translation settings. I've tried re-adding the icons yestarday, so they're fresh. The category_icon in the term translation corresponds for each language: hidden link
This is how the ACF settings look like: hidden link

"do you have to use a different image in your secondary languages or use the same image?" - same image

Let me know if you also need a video or you'd like to get access to the backend so you can play around with it.

September 26, 2023 at 9:55 pm #14469843

Nicolas V.
Supporter

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

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

Hi Radu,

In your screenshot I can't see the translation settings for "Category icon" which is the problematic field right?

I made an example where you see that I copy the image into the translation and I use the "return image URL" option.

Please note that you might have to update your PHP code to display the image if you were using the image ID before instead of the image URL.

Does it make sense?

screenshot-2023.09.26-16_51_39.png
September 27, 2023 at 11:36 am #14473521

Nicolas V.
Supporter

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

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

Hi Radu,

Do you have issues answering this ticket?

Maybe you can provide me with an admin account to to speed up the debugging process. I activated a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

September 27, 2023 at 4:15 pm #14475965

Nicolas V.
Supporter

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

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

Thanks for the access. I was able to find a solution.

Here is a video that explain how to do it: hidden link

September 27, 2023 at 5:28 pm #14476431

raduV

Nicolas, you're a life saver. I'll update all the translation and let you know if anything else buggs out. Appreciate your help man! 🙏

September 27, 2023 at 8:20 pm #14477271

Nicolas V.
Supporter

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

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

Hey,

You're welcome! I'm glad we found a solution. I'll let the ticket waiting for your confirmation.

October 3, 2023 at 10:19 am #14503321
raduV

Hey Nicolas, hope you had a nice weekend!

I was able to complete all the cuisines and features, in all languages. I just checked the google search console and there appears to contain a really weird thing in the Page Indexing > Not found (404) section.

The first URL: An ingredient that is translated into Romanian, appears to come up under lang=fr.
4th URL: The romanian version of a recipe comes up under the english recipes

Do you think I have to do the exact same thing, go into each individual ingredient in order for this to be fixed, or is there something that I'm missing?

Also attached a screenshot of the "Excluded by ‘noindex’ tag".

New threads created by Nicolas V. and linked to this one are listed below:

https://wpml.org/forums/topic/split-icons-not-loading-up/

Screenshot 2023-10-03 131904.png
Screenshot 2023-10-03 131247.png
October 3, 2023 at 4:32 pm #14507441

Nicolas V.
Supporter

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

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

Hey,

As the original issue is resolved and since we limit one issue per ticket, I have opened a new ticket for your additional question. Let's continue our conversation on that new ticket: https://wpml.org/forums/topic/split-icons-not-loading-up/

Keeping one issue by forum threat helps to keep the forum clean and organized, it will also help other users with similar problems to find solutions when searching the forum.

Thanks for your understanding.
Nico