i'am currently using latest version of jetpack. So the stats plugin is also included in this plugin. But now i want to display the number of views the single post get on the single.php file using the data from Stats plugin included in jetpack. So how can i do this?
closed as off-topic by Pieter Goosen, cybmeta, birgire, Mark Kaplun, gmazzap Nov 27 '14 at 14:59
This question appears to be off-topic. The users who voted to close gave this specific reason:
Put this into your functions.php file:
and then into your single.php file where you want the views to be displayed:
This will wrap it in a div with the class of stats-post-views so you can style it.