I’d like to show the number of views for each post on the front end. There is a plugin that does this called WP Post Views but you need to do the following to make it work:
In order to show the view count on a post, you merely need to put the following code into your single.php template:
1<?php if(function_exists(‘the_views’)) { the_views(); } ?>
I tried this but it seemed to break the code.
Any idea where I need to add this code to make this plugin work?
My blog is multi-author and this feature is really important so that each author can see how many times his posts have been viewed.
Hey!
Open includes/loop-index.php, put it exactly like this:
Regards,
Josue