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

Last updated by José Arcos 1 year, 4 months ago.

Assigned support staff: José Arcos.

Author Posts
June 5, 2018 at 11:08 am #2274396

liran-froindL

I need to get all not translated posts

Example:
I have english 10 posts
4 of them are translated to hebrew
I need to get other 6 posts (because they are not translated)

June 6, 2018 at 7:50 pm #2305721

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello there,

Please, apologize for the delay in answering. We are a bit loaded lately, but working hard to go back to normal.

While one of my teammates take this issue, let me add some hints to move it forward.

Please go to:
WPML > Translation Management >and use the "All translation status" drop-down to select "Not translated or need updating"

Let us know if this helps, please.

Kind regards,

Otto

June 7, 2018 at 9:41 am #2392726

liran-froindL

Maybe I was not very clear, but the problem is that I have a custom template on front. I need a function or basic query example how get all not translated posts. If posts are already translated than they should not be selected from DB

June 7, 2018 at 2:58 pm #2396905

José Arcos

Hello, thank you for contact us. I will try to do my best to help you.

If you want to show untranslated content there are two ways for that, please take a look to these documentation pages:

- https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/
- https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/using-content-duplication/

Please let me know if this solves the issue or if you need further details.

Have a good day.

June 15, 2018 at 12:49 pm #2415614

liran-froindL

I see, thank You.
Well it's didn't helped me , because what I'm trying to do is just to get list of all not translated posts for my personal use. I don't need it global for all site etc.
Or if it will be more clear question for You, I would like to var_dump all not translated ID's of posts

June 18, 2018 at 8:42 am #2418377

José Arcos

Hello again, we don't have such kind of hooks, you can see a list of available hooks here: https://wpml.org/documentation/support/wpml-coding-api/

If you need, we have a list of WPML Experts that can be contacted through https://wpml.org/contractors

Have a good day.