Jetpack Post Views
NOTICE: I am no longer maintaining this plugin. Jetpack does not provide the necessary functionality to reliably and easily update post views for more than 500 posts. I am tired of trying to hack a solution that ultimately doesn’t work. If anyone wants to continue to maintain the plugin feel free to
About this tool.
NOTICE: I am no longer maintaining this plugin. Jetpack does not provide the necessary functionality to reliably and easily update post views for more than 500 posts. I am tired of trying to hack a solution that ultimately doesn’t work. If anyone wants to continue to maintain the plugin feel free to download the code .
A plugin that displays your most popular posts using Jetpack stats.
Jetpack Post Views is a plugin that lets you integrate Jetpack stats into your site. Jetpack is a great plugin that lets you track information about your blog, but it doesn’t give you access to this information so you can display it to your visitors. The most common information users wish to have access to are the number of views for a post.
Jetpack Post Views gives you access to this information. This plugin adds a widget that lets you display your top posts by views according to Jetpack stats. As an added bonus, this plugin adds this information to the post meta of each post, allowing you to display those stats anywhere on your site. a
Screenshots & previews.
Getting started.
- 01Upload jetpack-post-views.php to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Upon activation, stats will be downloaded automatically and entered into the post meta for each post. This process takes time! Depending on how many posts you have, this can take up to 5 minutes, so be patient!
NOTE: If the plugin does not work, go to the settings page and try entering in your WordPress API Key.
To find your API key, log into https://apikey.wordpress.com/. Enter this key into the “WordPress API key” field in the Jetpack Post Views Settings page and click “Save Changes.”
To display the total views for a post anywhere on your site, just add the following code to your files (such as single.php):
<?php echo get_post_meta( $post->ID, 'jetpack-post-views', true ); ?>