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

make widget output filterable #51

Closed aschweigert closed 4 years ago

aschweigert commented 7 years ago

Right now there's no easy way to modify the output of popular posts in the widget. Some sites might want to exclude a certain post type or category (sponsored content, for example) so we should probably add a filter to make it easier to do that from an individual site's theme.

benlk commented 7 years ago

Partially addressed in https://github.com/inn/Google-Analytics-Popular-Posts/commit/26f718a69ff10c7393578e42c8e2e24ed669adf1#diff-b7ae0382593cd8bbd542e40639bf1182 used by https://github.com/religionnews/theme-rns/blob/master/inc/widgets.php#L25-L46