Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Jetpack Post Views

Display your most popular posts using Jetpack stats.

Help! My posts aren't updating!

There are many factors that could go wrong that would prevent a post from updating. Before you submit a support ticket, please ensure that:

  1. the plugin can access Jetpack - go to the Jetpack Post Views Settings page and make sure that at least one of the connections is green
  2. the post is getting views - go to your Jetpack Stats page and make sure that the post is actually getting views
  3. an entire day has gone by with no updates - Jetpack Post Views only updates once every hour, so letting a day go by will make sure that the plugin truly isn't working

If the post still isn't updating, please open a support ticket and include the following information along with a description of what the problem is. This will help me try to identify where the problem could be:

  1. Is the post a custom post type?
  2. Does the post belong to a custom category/tag?
  3. Does your site have over 500 posts?
  4. In the Jetpack Post Views Settings page, which of the 3 connections are green?

How can I display the top posts in my template?

Use the function 'JPV_display_top_posts()'


<?php if ( function_exists('JPV_display_top_posts') ) { JPV_display_top_posts( $args ); } ?>

Default Usage

<?php $args = array(
         'days'                   => '-1',
         'limit'                  => '5',
         'exclude'                => '',
         'excludeCustomPostTypes' => false,
         'displayViews'           => false ); ?>


days - (string) The number of days of the desired time frame. '-1' means unlimited.

limit - (string) The number of posts to display. '-1' means unlimited. If days is -1, then limit is capped at 500.

exclude - (string) A comma-separated list of Post IDs to be excluded from displaying.

excludeCustomPostTypes - (boolean) Excludes custom post types from displaying.

displayViews - (boolean) Displays the post views.

NOTE This function only works if the function stats_get_csv() exists. If this function is not working probably, it is probably due to the stats_get_csv() function not returning the needed results.

How can I display the top posts in my posts?

Use the shortcode '[jpv]'

The shotcode uses the same parameters as the 'JPV_display_top_posts()' function

Requires: 3.5 or higher
Compatible up to: 3.7.19
Last Updated: 3 years ago
Active Installs: 2,000+


5 out of 5 stars


Got something to say? Need help?


Not enough data

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

100,1,1 100,1,1