Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues where a QueryLoop does not display subpages in Spanish on your translated page, despite having the 'Set page parent for translation according to page parent of the original language' setting enabled, you are not alone.
Solution:
We recommend starting by closely examining the QueryLoop’s language/context resolution within the Site Pattern—especially how it detects and queries translated children in non-default languages. You should also investigate any WPML compatibility issues with full-site editing patterns and QueryLoop blocks. It's crucial to ensure that all page and pattern-level translation links and caches are validated. Avoid reiterating basic sync/edit/cache-clear steps; instead, review block output, site pattern translation integrity, and theme/block compatibility in the Spanish context. If necessary, collect a copy of relevant pattern and post data.
This solution might be irrelevant if it’s outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by avinashV 2 months, 2 weeks ago.

Assisted by: Kor.

Author Posts
January 29, 2026 at 7:40 pm #17775044

avinashV

Source language English has a QueryLoop that displays subpages filtered by a selected parent page. The parent page and all subpages have been translated to Spanish, however, the QueryLoop does not display the subpages in Spanish. I have not made any edits to the QueryLoop in the translated Page.
Example posts showing this issue:
English post correctly shows subpages in the sidebar under "LEARNING LIBRARY": hidden link
Translated Spanish post does NOT show subpages in sidebar under "CENTRO DE APRENDIZAJE": hidden link

The setting "Set page parent for translation according to page parent of the original language" is checked.

See attachments.

January 30, 2026 at 10:16 am #17776911

Kor

Thanks for your patience. I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

January 31, 2026 at 4:35 pm #17780387

avinashV

Hello Kor. I tinkered around a bit longer and was able to resolve my issue with what I believe is a workaround.

My Workaround:
I edited the Spanish version of the page and replaced the QueryLoop which had been copied from English with a new QueryLoop and set the Spanish parent page as needed. And this fixed the issue. I think this solution is good for now and I may look into a longer term solution using a custom taxonomy that is translatable so that there is no reliance on the numeric ID.

My further research:
I queried the database and found that the data in Spanish related to the Parent-child pages looked good. Also, the English and Spanish pages both had the same "trid." And, I observed that the English parent page ID was embedded in the WP block code for the QueryLoop, which I believe is expected WP behavior.

Considering the page ID is embedded in the QueryLook block code, I'm wondering how WPML is designed to work in this scenario, to use the Spanish language parent page corresponding to the English language parent page.