INN / Google-Analytics-Popular-Posts

A WordPress plugin that uses Google Analytics data to determine the most popular posts on your site and display a list of popular posts via the included widget.
https://wordpress.org/plugins/ga-popular-posts/
23 stars 7 forks source link

Widget "Number of posts to show" is doubled in widget output #64

Closed wadehammes closed 7 years ago

wadehammes commented 7 years ago

Currently, on updated plugin, the field in the widget to set max rows isn't working, my site is showing double of what number I set in this field.

wadehammes commented 7 years ago

Line 104 of the AnalyticsPopularWidget.php reads:

'showposts' => $instance['num_posts'] * 2

I'll submit a PR fixing this.