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?
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.