I cannot figure out how to have dynamic most popular pages by categories.
I will show it on example of a blog about sports. Categories are: football, tennis, golf. I published article about golf tournament and in a sidebar I wish to have a widget with most popular posts from a category "golf". No other posts. Just posts from this category.
On different post about the last football match I want to have popular posts just from category "football".
Any ideas how can I do it? I found some tutorials (like http://www.dynamicwp.net/articles-and-tutorials/how-to-displa-most-popular-posts-from-a-specific-category/) but it is not dynamic :/
Thank you in advance for your help.