Plugin Directory

WordPress Popular Posts

With WordPress Popular Posts, you can show your visitors what are the most popular entries on your blog.

  1. Download the plugin and extract its contents.
  2. Upload the wordpress-popular-posts folder to the /wp-content/plugins/ directory.
  3. Activate WordPress Popular Posts plugin through the 'Plugins' menu in WordPress.
  4. In your admin console, go to Appeareance > Widgets, drag the WordPress Popular Posts widget to wherever you want it to be and click on Save.
  5. (optional) Go to Appeareance > Editor. On "Theme Files", click on header.php and make sure that the <?php wp_head(); ?> tag is present (should be right before the closing </head> tag).

That's it!

Shortcode

If you want to use WordPress Popular Posts on your pages (a "Hall of Fame" page, for example) please use the shortcode [wpp]. Parameters are optional, however you can use them if needed. You can find the complete list of the parameters via wp-admin > Settings > WordPress Popular Posts > FAQ.

Usage:

[wpp]
[wpp attribute='value']

Example:

[wpp range=daily stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]

Template Tags

wpp_get_mostpopular

Due to the fact that some themes are not widget-ready, or that some blog users don't like widgets at all, there's another choice: the wpp_get_mostpopular template tag. With it, you can embed the most popular posts of your blog on your site's sidebar without using a widget. This function also accepts parameters (optional) so you can customize the look and feel of the listing.

Usage:

Without any parameters:

<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular(); ?>

Using parameters:

<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&order_by=comments"); ?>

For a complete list of parameters, please go to wp-admin > Settings > WordPress Popular Posts > FAQ.

wpp_get_views()

The wpp_get_views template tag retrieves the total views count of a single post. It only accepts one parameter: the post ID (eg. echo wpp_get_views(15)). If the function doesn't get passed a post ID when called, it'll return false instead.

Usage:

<?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?>

Requires: 2.8 or higher
Compatible up to: 3.4.2
Last Updated: 2013-5-15
Downloads: 488,937

Ratings

4 stars
4.1 out of 5 stars

Support

18 of 44 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

7 people say it works.
4 people say it's broken.

100,6,6
89,9,8 33,3,1
100,4,4 0,2,0
0,1,0 42,12,5 100,3,3 60,5,3 0,2,0
80,10,8 93,14,13 100,1,1 0,3,0
100,5,5 44,9,4 40,5,2 100,2,2 85,13,11
87,38,33
33,3,1
58,12,7
67,6,4 0,1,0
50,4,2 0,1,0
63,24,15
50,4,2
75,4,3
86,7,6
100,1,1
100,2,2
87,15,13 60,5,3 34,29,10 25,4,1 75,4,3 100,1,1
0,3,0 100,5,5
96,25,24
100,1,1 71,17,12 50,2,1 100,1,1
50,2,1 100,1,1
100,1,1 86,7,6 14,37,5 43,7,3 100,1,1
100,1,1 50,2,1 61,33,20
33,6,2
100,1,1 64,11,7