WP: 'Most popular based on category' plugin

Joined
Oct 14, 2014
Messages
87
Likes
66
Degree
0
Thought I'd check if anyone here knows about this or, even better, uses it.

I want a "most popular" plugin that, drum roll, displays the most popular posts in my sidebar. Can be based on comments or views, doesn't matter.

I also want it to be based on either the present category or parent category, so as to keep relevancy high. So if you're on a Audi post, I'd want to display most popular from the Cars category.

This one https://wordpress.org/plugins/wordpress-popular-posts/ is great and it works for just displaying most popular, but I can't seem to make it do what I want. I can only exclude categories. I suppose I can set up if/else statements manually for each category, but I'd rather want something that just grabs the current category, if it exists.
 
Not sure in terms of plugins. If you want a text list like the one in that link, you should be able to write a simple loop for the current category. The only problem is you'll also have to track views in the database, which these plugins do.

This link has all of the code: http://www.wpbeginner.com/wp-tutori...posts-by-views-in-wordpress-without-a-plugin/

You could even add it all to a shortcode and then put it in a widget.
 
Back