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.
Here’s the code for members:
Get Full Access & Support
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.