Skip to content Skip to sidebar

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 1 reply, has 2 voices.

Last updated by Dražen 1 year, 2 months ago.

Author Posts
May 1, 2024 at 10:39 am #15583601

深嶋 利之

■ Issue
we can not get Japanese post data in other language
we want to fetch only Japanese post data and display it even when you switched other language

■ Situation
there are 4 language you can switch by language switcher
there is one post in sider

■ What we did
1 set 'suppress_filters' =>true, in array (which is working but when you switched other language comment and likes are double )
2 created custom query

■ Quesiton
is it possible to get only Japanese post data and display it in other language ?

May 1, 2024 at 11:42 am #15583768

Dražen
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

Sure, you can use wpml_switch_language hook, to switch to language you wish and then run query in that post:

- https://wpml.org/wpml-hook/wpml_switch_language/

Related ticket:
- https://wpml.org/forums/topic/i-need-to-retrieve-posts-in-different-language-than-current/

Hope it helps.

Regards,
Drazen

The topic ‘[Closed] getting specific post data in different language’ is closed to new replies.