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!
The topic ‘Compatibility issue with WPML plugin’ is closed to new replies.