How To Display Your Most Popular Blog Posts In WordPress Using Jetpack Stats Module ?

Jetpack’s stats module shows you your most popular blog posts on your admin area dashboard. WordPress plugin’s repository has a new plugin Jetpack Post Views, this plugin simply allows you to dispplay your most popular blog posts as a sidebar widget on your WordPress site. But remember this only works if you have Jetpack by WordPress.Com plugin activated and its stats module is enabled on your website.

Install and activate it then visit Dashboard -> Appearance -> Widgets page and drag its widget to your sidebar or any other widget area if you have. The widget options allows you to change the number of popular posts to show and also you can enable the number post views count to display on frontend. The plugin access all information using WordPress API so you have to add your unique WordPress API Key (get it from here: https://apikey.wordpress.com/) to the Jetpack Post Views Widget and then click “Save” button.

Also you candisplay the total views for a post anywhere on your website by adding the following code snippet to your theme’s template files like single.php etc:

<?php echo get_post_meta( $post->ID, 'jetpack-post-views', true ); ?>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.