Title: WPML support
Last modified: August 22, 2016

---

# WPML support

 *  Resolved [sirtimo](https://wordpress.org/support/users/sirtimo/)
 * (@sirtimo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wpml-support-20/)
 * Hi,
 * We’re looking to implement the project into a new quite big website, which will
   be multilanguage using WPML. We’ve contacted WPML if they want to add support,
   but as long as the plugin isn’t core functionality they put the responsibility
   into the developers hands.
 * They have this compatibility program:
    [http://wpml.org/documentation/theme-compatibility/go-global-program/](http://wpml.org/documentation/theme-compatibility/go-global-program/)
 * Any chance you guys can look into this?
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 * (@rmccue)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wpml-support-20/#post-5277930)
 * (I answered this one over on [GitHub](https://github.com/WP-API/WP-API/issues/476).)
 *  [Ryuhei Yokokawa](https://wordpress.org/support/users/ryuheixys/)
 * (@ryuheixys)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wpml-support-20/#post-5278076)
 * Guys, I just made this:
    [https://wordpress.org/plugins/wpml-to-wp-api/](https://wordpress.org/plugins/wpml-to-wp-api/)
   Figured I’d post here to let you know.
 *  [adaki](https://wordpress.org/support/users/adaki/)
 * (@adaki)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wpml-support-20/#post-5278077)
 * Hi!
 * If you need to make WPML compatible, just insert this code in “lib/class-wp-json-
   posts.php” file, inside “get_posts” function:
 *     ```
       if (isset($filter['lang'])){
         global $sitepress;
         $sitepress->switch_lang($filter['lang']);
       }
       ```
   
 * This way, if “lang” parameter is defined, we could retrieve posts in especified
   language, otherwise default language posts.
 * An example:
    `http://www.myweb.com/wp-json/posts?filter[category_name]=berriak&
   filter[lang]=eu`
 * Could you set this update for next versions of the plugin?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WPML support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [adaki](https://wordpress.org/support/users/adaki/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/wpml-support-20/#post-5278077)
 * Status: resolved