Title: Compatibility issue with WPML plugin
Last modified: August 21, 2016

---

# Compatibility issue with WPML plugin

 *  [NiceTeam](https://wordpress.org/support/users/abucci/)
 * (@abucci)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/compatibility-issue-with-wpml-plugin/)
 * I’m using this plugin and facing a compatibility issue with WPML plugin on a 
   multilingual website. My goal: to display posts in user selected language if 
   available or in default language.
    On WPML plugin there is a setting to select
   which posts to display and I set it to “All posts (display translation if it 
   exists or posts in default language otherwise)”, however when user selected language
   B and the post is only available in language A (default) it’s not displayed. 
   I contacted WPML support and they ‘hacked’ the WP Display Posts Shortcode plugin
   to display all posts disregarding the language (added a couple rows of code),
   however in this case all posts in every language are being displayed. They suggested
   to contact you as the plugin author and to have the plugin updated. They pointed
   me to the function that is called when that setting is enabled to see what parts
   of it you can reuse to modify the plugin. The function involved is function the_posts()
   in sitepress.class.php (WPML plugin) Any help ? Thank you in advance!
 * [http://wordpress.org/plugins/display-posts-shortcode/](http://wordpress.org/plugins/display-posts-shortcode/)

The topic ‘Compatibility issue with WPML plugin’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [NiceTeam](https://wordpress.org/support/users/abucci/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/compatibility-issue-with-wpml-plugin/)
 * Status: not resolved