question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Translated text in posts with `get_posts` method

See original GitHub issue

Hello! I’m getting posts using get_posts method and when I get non-English text of original post it’s include translated text right after original in post_text.

Is there any ways to get only original text without translation? Maybe translated version is wrapped in some extra HTML tags?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
Moiz-khancommented, May 21, 2022

use google_trans_new after scraping data

1reaction
kostyakozcommented, Feb 14, 2022

This is working perfectly. Thank you so much for help! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

wp_xmlrpc_server::wp_getPosts() | Method
Modifies the query used to retrieve posts. Accepts 'post_type' , 'post_status' , 'number' , 'offset' , 'orderby' , 's' , and 'order' ....
Read more >
Language you'd like to have posts translated into - Facebook
To change the language that posts or comments are translated to: 1. Tap in the top right of Facebook. 2. Scroll down and...
Read more >
Debugging Theme Compatibility - WPML
For example get_posts would not be a good query method to use since is ... wpml_object_id – This hook will return the ID...
Read more >
Query posts by custom fields - ACF
The get_posts function makes use of the above WP_Query object, however, it only returns an array of $post objects making it a simpler...
Read more >
PHP - 10up Engineering Best Practices - GitHub Pages
As such the way post meta is stored does not facilitate efficient post lookups. ... As outlined above, get_posts() and WP_Query , apart...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found