Display Your Most Popular WordPress Posts Using Jetpack Stats
Your most popular posts are usually your best work and are likely to attract new subscribers to your blog. If you already have the Jetpack stats module active on your WordPress site, here’s a quick tip for putting your stats to good use on the front end of your site.
Jetpack Post Views is a new plugin that displays a list of your most popular posts based on Jetpack stats. It uses your WordPress API Key to access your Jetpack information and make popular posts available to your visitors via a widget, as seen here.
Displaying total views for the posts is optional in the widget settings. You can elect to display the total views for the post in the post meta by adding this tag to your theme’s single.php template file.
<?php echo get_post_meta( $post->ID, 'jetpack-post-views', true ); ?>
Stats will be updated hourly as long as the plugin is active.
Jetpack Post Views is a free plugin available from the WordPress plugin repository. I tested it today and it works exactly as advertised. Install the plugin on any site where you want to start showing off your most popular content.
- Display Popular Posts in WordPress to Keep Your Best Content Fresh Displaying a list of popular posts in WordPress is an…
- Jetpack Lite Brings You Stats and Shortlinks – Nothing Extra Want to take advantage of Jetpack but don’t want all…
- How to Fix Jetpack Stats Timezone Issues Have you ever noticed your timezone being displayed incorrectly at…