How do I get a list of popular posts by views?

I am using the Jetpack plugin to get ‘site stats’ which shows the number of views for blog posts/pages. So I’m no expert or anything but I’m guessing there is a table that stores these views. Is there a way to manipulate this data to create a simple list of the most popular posts by views in the sidebar?

Currently, I’m using a plugin for this but I’d prefer to hard code it straight into the theme.

Read More

Any guidance would be massively appreciated.

Thanks for reading!

Related posts

Leave a Reply

3 comments

  1. Although wp-postviews (suggested by kevin) is a good plugin, I would definitely recommend the use of post-views since it offers some usable functions so you can hardcore it right into your theme.