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
280 stars 82 forks source link

Should wpp_get_views() detect the presence of WPML/Polylang? #336

Closed cabrerahector closed 1 year ago

cabrerahector commented 1 year ago

An user reached out via support forum to notify that when using the wpp_get_views() function with WPML installed the function doesn't return the right views count when switching to other languages than the default one, see The calculation of pageviews in different languages (WPML plugin).

The function probably should be checking the provided post/page ID "translate it" when switching to different languages so it returns the right views count for the post/page.