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 2 voices.

Last updated by Itamar 8 months, 3 weeks ago.

Assigned support staff: Itamar.

Author Posts
September 3, 2019 at 6:57 pm #4506963


Tell us what you are trying to do?
wp_list_pages() inside archive-cpt.php in child theme folder
when I switch to secondary language the content area is blank.
So wp_list_pages() is not working as expected.
Everything is good when I view the page in default language.

Is there any documentation that you are following?
I have been searching through the forums and guides but nothing works.

September 3, 2019 at 8:12 pm #4507207


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

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


If I understand, correctly, a custom code that you have created is not working for you in the secondary language of your site.
Please let me know if this is correct?

If so, then please know that we have extensive information for developers at the following link.
And we have API hooks which you can use here.
If something is not working for you with one of our hooks and you can show us what is not working, we'll investigate why it is happening and advice to you how to use it or fix it if from our side needed. But otherwise debugging a custom theme is out of the scope of this forum.
At this point, if you still need help, I would suggest you consider contacting one of our certified partners from this link:
Before doing so please have a look also here:

With our contractors, you might get the custom assistance you need to get on with your project.

Best Regards,

September 3, 2019 at 11:05 pm #4507473


I would have thought that "wp_list_pages() not working" would be inside your scope of support since that function is a native wordpress function, and you guys are building a plugin for wordpress.

But i'm not going to argue here. I was just hoping you guys could share some insights to speed up my troubleshooting.. if not, then thanks anyways.

September 4, 2019 at 2:12 am #4507729


I feel a bit stupid right now...
All I had to do was duplicate the pages to the other language.. haha.
The wp_list_pages() is working perfectly from any language.

Thanks for your time buddy.

September 4, 2019 at 2:13 am #4507731


My issue is resolved now. Thank you!

September 4, 2019 at 6:31 am #4508461


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

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

Great, I'm glad that it is solved now!
Good luck with your web projects 🙂