Show most popular WordPress posts without a plugin

Heres a little trick on how to show a list of the most popular WordPress post by post read count – without using a plugin.

Instructions
Add this code to your functions.php file.

Then add this anywhere in your template where you wish to display the posts.

Comments

One Reply to “Show most popular WordPress posts without a plugin”

Leave a Reply

Your email address will not be published. Required fields are marked *

Siteground Web Hosting