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

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.