wordpress-popular-posts icon indicating copy to clipboard operation
wordpress-popular-posts copied to clipboard

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

Open cabrerahector opened this issue 2 years ago • 0 comments

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.

cabrerahector avatar Jul 14 '22 18:07 cabrerahector