cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

Wrong post_id in wpml installation #227

Closed giovanni-ctmobi closed 5 years ago

giovanni-ctmobi commented 5 years ago

In case of wpml installation get write in db the wrong post_id ( the default language's post id )

Let's suppose that i have a default language in wpml as eng 1) Create a post in one language ( eng ) and create it's translation ( ita ) 2)Visit both language version 3) From the db you can't see the visit from the ita version of the post and instead, you have one more visit from the eng version of that post.

Environment:

cabrerahector commented 5 years ago

Hi @giovanni-ctmobi,

From the db you can't see the visit from the ita version of the post and instead, you have one more visit from the eng version of that post.

That's the expected behavior, actually. Both the english version and the italian version of your post share the same views count. See WPP only in current language (with WPML) for more details.