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

3 Replies 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
3.3 (65%) 24 vote[s]
Please report broken snippets.
Report Broken Snippet
WP Engine