WordPress popular posts and WPML
-
As wpp does not support WPML, I did a little modification so it would show the correct posts in the respective languages.
File wordpress-popular-posts.php, line 1418, above // * posts exclusion add
if(defined("ICL_LANGUAGE_CODE")) $where .= " AND p.ID IN ( SELECT element_id as ID FROM {$wpdb->prefix}icl_translations WHERE language_code='".ICL_LANGUAGE_CODE."') ";
Now wpp should display the post in the current language. Just hope that the author will fix and add WPML support for the plugin soon.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘WordPress popular posts and WPML’ is closed to new replies.