When I need to display on the website a list of popular posts - I use the widget. This list shows the 5 posts all sorted according to specific criteria. In the stream of shows: thumbnail image, the title, the first 300 characters, Number of comments, views Number, date of publication.
Displaying the number of views provides the
$pageviews, in the file: wordpress-popular-posts.php If I understand correctly, the value for the
$pageviews where it is stored.
The idea is that it would be possible to display the value in any other place on the site - in the category page that displays the list of posts.
Why do it? When I display the main page list of popular recordings, its HTML wrapper is the same as for the list, the category page. But the difference is that in terms of a list of standard conditions means WordPress and they is not designed for counting the number of hits.
In order to HTML wrapper popular posts was the same on the home page and a list of posts in the categories on the search page, the page tag ...
Simply put, how to insert the value of this variable (counter) on category pages, search pages, tag pages?
Hope to understand, - and I do not know English ...:))