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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Dražen 1 day ago.

Assisted by: Dražen.

Author Posts
January 6, 2025 at 10:35 am

axelT-5

Background of the issue:
I am trying to use page lists in content and navigation menus, either directly in footers or in submenus in the header. All involved pages have been translated. The issue can be seen at: hidden link. I expected to see the translated content of hidden link, including a menu with a submenu and a page list of the 'parent' page with one 'child'.

Symptoms:
The translated page lists return empty. In contents, this is just an empty block, and in navigation menus, the menus are missing. Instead of the expected submenu and page list, I got no submenu and no page list, with the page list framed by two paragraphs.

Questions:
Why are the translated page lists empty?
How can I fix the missing menus in the translated navigation?

January 6, 2025 at 11:40 am
January 7, 2025 at 9:39 am #16568686

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for the patience, I will take over and help further.

Please note we 2 issues here, so we might need to split tickets.

1) Menu items - Can you check now? I see pages were not added as parent/child from Pages > All, so I have added them and re-translated your templates from WPML > Translation management, and it seems to work fine.

2) I will open a new ticket for this, as this seems to be a bug with the Page list block inside a content template, I will update further on this topic in the new ticket:

- https://wpml.org/forums/topic/split-page-lists-block-is-empty-in-translation/

Regards,
Draze

January 7, 2025 at 12:07 pm #16569406

axelT-5

Hello,

I still think these are the same issue - the translated pagelist returns an empty array which any block making use of them, be it in content, header, footer, navigation etc. will base its rendering on this empty array.

Fixing the bug in the most simple case, e.g. just pasting a pagelist into content, could automatically fix all other use cases.

January 7, 2025 at 12:41 pm #16569500

Dražen
Supporter

Languages: English (English )

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

Hello,

sure, but until I can confirm and check further, please let's keep it separate, as it looks to me like they can be different.

Can you please revert back to my last reply, check the issue with navigation, and let me know if something is wrong, since as I said it works fine now after re-translating the pages / template.

Regards,
Drazen

January 8, 2025 at 1:00 pm #16573499

axelT-5

Hi,

I already wrote about the navigation - as you see the original and translated one have very different structure with the latter even having one root menu point extra. This seems to be a different bug where the translation is an old one - the menu structure I added was not really translated, otherwise the deleted menu (Sample) would not exit in the translation.

In short - yes, there are two distinct bugs, one with the empty-translated-pagelist and one with old content not being replace with new translations.

January 8, 2025 at 1:40 pm #16573675

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I understand that you wrote before, but let's try to make it more clear here for the navigation issue so I can confirm and check and escalate further.

I am checking the navigation issue on: hidden link, and I see the same structure in both languages and no issue, but maybe I am misunderstanding something here. Image attached.

Can you please recheck and share with me what is different, exact example, or try to reproduce it again on that website and share with me step by step guide so I can check and confirm it also?

Thanks,
Drazen

Slika zaslona 2025-01-08 u 14.39.43.png
January 8, 2025 at 2:09 pm #16573872

axelT-5

Don't cheat! 😉

You replaced the pagelist with a singular page link.

Screenshot 2025-01-08 160755.png
January 8, 2025 at 2:13 pm #16573889

Dražen
Supporter

Languages: English (English )

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

Hello,

I am not as I do not even yet understand this issue with navigation or what happens. I have taken this ticket not sure if it was like this or if someone changed this later.

That is why I am trying to share with you that I do not understand or see the issue and need further information from your side.

If you can please reproduce it and share step by step guide with me so I can further help you on this.

Thanks,
Drazen

January 9, 2025 at 6:46 am #16576030

axelT-5

I think it wasn't a good idea to split this issue as this is now answered elsewhere:
https://wpml.org/forums/topic/split-page-lists-block-is-empty-in-translation/#post-16574435

"Easiest way to verify is very simple:
1. create a blank navigation block (anywhere even in content, so no need to use the side editor on templates)
2. just add one page list (the default "all pages" will do)."

January 9, 2025 at 7:37 am #16576203

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for the reply.

I will check further on this with our 2nd tier and get back to you soon.

Regards,
Drazen

January 9, 2025 at 8:09 am #16576303

Dražen
Supporter

Languages: English (English )

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

Hello,

our 2nd tier checked further and it seems it is related to the navigation template after all, if you check the code of blocks there is a wp_navigation cpt that is with ID 10 and translated to ID 41

It has a different structure than the original. If you re-translate them and make them the same it works fine.

Can you please recheck if this helps:

- hidden link

Regards,
Drazen