Translated text in posts with `get_posts` method
See original GitHub issueHello! 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:
- Created 2 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
use google_trans_new after scraping data
This is working perfectly. Thank you so much for help! 👍