Add Post Views Counter For Popular Posts

This code enables you to display the single post view count for each post. The code creates a new function get_views(); you can use in any template file or hook in using a custom function. Also included is a shortcode [views] you can add anywhere including inline with the default entry meta in the entry header or entry footer. Also included is code to add schema if desired.

Watch the following gif to see the post views counter tick over.

video

Here’s the code for members:

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.