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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by henrikR-17 1 year, 12 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 18, 2023 at 10:42 pm #12846549

henrikR-17

Hi!

On my website I have posts in 3 languages - English, Danish, and Spanish.
Some posts are translated in all 3 languages but many are only available in 1 or 2 languages. I would like ALL posts to be displayed in ALL languages, but with those in the current language first...
In other words:
If you choose English, you should see a list, where all posts that exist in English are displayed at the top, followed by all the other posts, preferably also grouped after language... Is that possible in WPML? In that case: In which of the WPML versions?

I haven't been able to find any documentation on that.

I don't see the relevance of debug info...

January 19, 2023 at 7:11 am #12847909

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

WPML translates content into different languages which is then can be viewed on frontend on per-language basis. This means you'll need to switch to an available language to view the content translation.

The thing you're asking (mixing of languages on a single page/post) requires custom coding which is out of the scope of our support forums. However, WPML offers filters and action hooks that can be used in your WordPress theme or plugin to provide correct multilingual support. Browse following resources for more information:

- https://wpml.org/documentation/support/wpml-coding-api/
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
- https://wpml.org/documentation/support/wpml-coding-api/shortcodes/
- https://wpml.org/faq/how-to-get-current-language-with-wpml/
- https://wpml.org/documentation/support/wpml-tables/
- https://wpml.org/documentation/support/

If you need additional custom work, we recommend you contact WPML Contractors at https://wpml.org/contractors/.

Regards.

January 19, 2023 at 8:13 pm #12854271

henrikR-17

OK. I will have to drop that idea. 🙂
Thank you for your reply!