Poptartica
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Any way to get translated post through WP REST API ?Hey guys,
Sorry for the delay in reply – I got pulled to a different project for a while.
@art.mu: Thank you for the suggestion!
I tried adding the code you suggested to my functions file, however, it still only seems to return the results in the default language (which for me is EN/English). It might be because my Polylang is set up to use the language code as a subdirectory in the URL for pretty permalinks (for example “http://www.website.com/ru/the-post/” for RU/Russian) rather than language parameters.@chouby: Thanks for checking on this, Chouby! Sorry, I was having trouble finding “include/choose-lang.php” .. I did find it though, for me it ended up in the “frontend” folder.
I tried adding the line you suggested in place of the current one, but for me it still seemed to return only the default language, English. As I told Art though, it might be because my language display is set to pretty permalinks instead of parameter. Do you have any suggestion for pulling the language if I am using this setting?
Forum: Plugins
In reply to: [Polylang] Any way to get translated post through WP REST API ?Hi, I just wanted to add that I too am very interested in this. Especially since WP-API will be merged into core.
Chouby has done an awesome job so far making a great and full featured plugin for us, since I am sure he will also add WP-API support, I think the biggest questions from me are …
Does anyone know when this plans to be implemented? or ..
Is there a way to grab the translated post already?