Ranged Popular Posts Widget for WordPress

Popular Posts

This is a simple popular posts WordPress widget for your blog. The popularity formula for this widget is solely based only on the number of comments for each post. The most popular post is the post which has the most comments. I add a time interval parameter to specify when the posts are considered popular. With this addition, you can specify a range when the posts are considered popular. You can specify arbitrary number of weeks, months, and years back from the current date as the time interval parameter. You can also choose all-time popular posts, ignoring the time interval parameter.

The following image shows the appearance of this Ranged Popular Posts widget in my Indonesian WordPress blog (suhanto.com):

The Ranged Popular Posts widget

And the following images shows the setting of this widget in administration screen:

Widget parameters for Ranged Popular Posts widget

As you can see from the administration screen, you can tweak the widget to display certain number of popular posts. You can specify posts interval to be included as popular posts. You also can display the number of comments for each post. This little flexibility should be enough for a simple popular posts WordPress widget.

Installation

If you already knew how to install WordPress plugin (widget), the installation process of this widget is not different from other WordPress plugins.

First please download this plugin http://wordpress.org/extend/plugins/ranged-popular-posts/. Then, extract the ranged-popular-posts-1.1.zip into your plugins directory. Next step, you have to activate the plugin via admin plugin screen. After activating the Ranged Popular Posts widget should be available in your widget collection. You can drag and drop it to the sidebar and place it as you like.

Widget Parameters

This section covers the description of parameters used by this widget.

  1. Title

    This is the title of widget, in plain text. You can put any value here. For example: Popular Posts, Popular Posts (Trailing 1 Year), Most Commented Posts, etc.

  2. Posts Interval

    This is the time-range when the posts are included in popularity calculation. This parameter is a combination of a number and a range-type. You can put arbitrary ‘reasonable’ number here. The range-type value is provided and can be chosen from a dropdownlist. Currently available range-types are all-time, year(s), month(s), and week(s). For example if you put 1 as number, and choose year(s) as range-type, the popular posts will be calculated only from the trailing 1 year postings.

  3. Number of Posts to Display

    You can specify how many posts to display in this widget. For example if you put 10, then only the most 10 popular posts will be displayed in the widget.

  4. Show Number of Comments

    The number of comments for each post will be displayed if this option is turned on. Otherwise, it will be hidden.

Related Posts

Top Commenters Gravatar Widget for WordPress
 
Latest Posts with Share Widget for WordPress
 
Recent Comments with Gravatar Widget for WordPress
 
Rounded Tag Cloud Widget for WordPress
 
Facebook Fan Box Widget for WordPress
 
Creating Menu in WordPress 3.0 Programmatically
 
This entry was posted in WordPress and tagged , , .

6 Responses to Ranged Popular Posts Widget for WordPress

  1. Pingback: Widget WordPress: Ranged Popular Posts « suhanto.com

  2. Pingback: Как вывести популярные посты | Ranged Popular Posts | темный Незнайка светлый Wordpress | n-wp.ru

  3. Camelot says:

    How I can add a thumbnail for each post?
    In my case all the entries already have a custom field with the direction of the image but do not know how to add the appropriate code to your plugin

    • Agus says:

      Camelot, eventually I will add the image thumbnail feature to this plugin. But if you need it now, you can add the code for image thumbnail on the widget() function.

  4. Paijo Phone says:

    Is it posible get popular post by views ?

  5. iwan ajah says:

    if my themes not widget ready, how to add to my themes?
    thank’s

Leave a Reply

Your email address will not be published.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Me

I am a professional developer and designer for the following systems: WordPress, Magento, and OpenCart. You can hire me to do overseas works related to those systems.
Hire me | Donate / Payment | Testimonials

Recent Comments