WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Jetpack Post Views

Display your most popular posts using Jetpack stats.

  1. Upload jetpack-post-views.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Upon 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 ); ?>

To display views for a day, week, month, or year, add the appropriate code:

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

Stats are updated hourly only if the plugin is active.

Requires: 3.5 or higher
Compatible up to: 3.7.1
Last Updated: 2013-12-11
Downloads: 18,679

Ratings

5 stars
5 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1
100,1,1
0,1,0