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.
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..
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.
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.
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.
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:
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.