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 *

Snippet Info

Tested with Wordpress v. 4.7.3
Last Modified: 24.09.2017
Last Reviewed: 24.09.2017

Show most popular WordPress posts without a plugin
4.3 (85.71%) 7 votes
Please report broken snippets.
Report Broken Snippet
Web Hosting