WordPress Stats Plugin: Display Post Views [closed]
Put this into your functions.php file: function userfunc_get_post_views($postID) { global $post_stats; foreach ( $post_stats as $p ) { if ( $p[‘post_id’] == $postID ) { ?> <span class=”stats-post-views”> <?php echo number_format_i18n( $p[‘views’]) . ‘ views’; ?> </span> <?php } } } and then into your single.php file where you want the views to be displayed: … Read more