[Plugin: And The Winner Is…] Plugin won't get all posts in multilingual site
First of all, thank you for this plugin.
I really like the smooth and easy it interact with wordpress.
I’ve come to a issue (bug ?) using it on a multilingual site.
I’am using the WPML plugin to manage my translations.
Let’s say that I have 1 post in in french and a second one in english (which is the translation of the 1st post).
The “and the winner” functionnality is activated on both post but in the administration page (which is in french also), only the french post appeared on the plugin table.
I found out that it was due to the use of the query_posts() method.
The SQL query made by this method add a ‘JOIN’ to the WPML translation table and an ‘active language’ parameter is included.
So I was only able to see the only post corresponding to the active langage (french).
I made a change in ‘admin-pages/contests.php’ page using get_posts() method instead of query_posts().
And as far as I’am concerned, it worked.
Maybe you should add this little modification on future version of your plugin.
Until then, thanks again for this wonderful tool.
- The topic ‘[Plugin: And The Winner Is…] Plugin won't get all posts in multilingual site’ is closed to new replies.