Saturday, 11th Mar 2017

↑ Return to WordPress Plugins

Print this Page

Custom Recent Posts Widget

This plugin creates a new widget which lets you show a list of recent posts based on categories or tags. This is a must have plugin if you want to exclude some categories in recent posts widget or if you want to show recent posts based on tags. By default the wordpress recent posts widget shows a posts from all category. But this plugin gives you more power to customize your recent posts widget. You can also display post date in the widget.

See the live action of this plugin on demo site or on Kennneth John Odle’s blog.

Have any questions or suggestions? Create a thread in the support forum.

Visit this page for more WordPress Plugins from the developer.

A special thanks to Ken and Josh for testing the code.

Download

Latest version: Download Custom Recent Posts Widget v2.1.1 [zip]

Installation

  1. Extract the contents of the .zip archive

  2. Upload the custom-recent-posts-widget folder to your wp-content/plugins directory.

  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

  4. Go to Appearance –> Widgets to add the widget to any widgetized areas.

FAQ

Q. How to style the widget?
A. The widgets inherit the style of default WordPress Recent Posts widget. You can use .crpw-item and .crpw-tag-item CSS class to style Custom Recent Posts Widget and Custom Recent Posts by Tags Widget respectively.

Example

.crpw-item {
    font-weight: bold;
    font-size: 14px;
    list-style: disc inside;
}

Screenshots

  1. custom-recent-posts-widget screenshot 1

    Custom Recent Posts Widget

  2. custom-recent-posts-widget screenshot 2

    Custom Recent Post Widget when added to sidebar on widget menu. Here the number of posts to show is set to 6 and only the ‘WordPress’ category is selected

  3. custom-recent-posts-widget screenshot 3

    Custom Recent Post Widget showing a list of 6 recent posts from the category ‘WordPress’

  4. custom-recent-posts-widget screenshot 4

    Custom Recent Post Widget in Kennneth John Odle’s blog

  5. custom-recent-posts-widget screenshot 5

    Custom Recent Posts by Tags Widget

  6. custom-recent-posts-widget screenshot 6

    Custom Recent Posts by Tags Widget configuration

  7. custom-recent-posts-widget screenshot 7

    Custom Recent Posts widget with date in 2012 theme

Changelog

2.1.1

  • Changed classname back to widget_recent_entries. No more confusions. All themes should be happy now. Thanks Adam Parnala for bringing my attention to this issue.

2.1

  • Added option to show post date. Code taken from Recent Posts widget in WordPress 3.5
  • Changed classname

2.0

  • Added Custom Recent Posts by Tags Widget. You can show recent posts based on tags.
  • Removed style sheet and changed classname to widget_recent_entries. So, widget will inherit the style of default WordPress Recent Posts widget.

1.1

  • Changed class names
  • Updated style sheet
  • Using crpw_register_widgets function to register the widget
  • Added another screen shot

1.0

  • Initial public release

6 comments

Skip to comment form

  1. koninckx

    unclear how I can insert last blogs on the sidebar

    Thanks

    1. Prasanna SP

      Drag and Drop the Custom Recent Posts widget to your sidebar. Make sure your theme supports widget

  2. Leena Dasot

    you have done nice piece of work to make good article, your screenshots are very helpful to me, it is in reality helpful information, thanks that you shared with hard working, thanks again…keep it up..

  3. Mike

    I tried changing css on my blog but it doesn’t work..

    .crpw-item {
        font-weight: normal;
        font-size: 14px;
        list-style: disc inside;
    }
     
    .crpw-tag-item {
        font-weight: normal;
        font-size: 14px;
        list-style: disc inside;
    }
    1. Prasanna SP

      Hi Mike! Try adding !important for your style declaration. Like this,

      .crpw-item {
      font-weight: normal !important;
      font-size: 14px !important;
      list-style: disc inside !important;
      }
       
      .crpw-tag-item {
      font-weight: normal !important;
      font-size: 14px !important;
      list-style: disc inside !important;
      }
  4. Madiha

    this one is simple yet incredible plugin.. thanks for sharing it with the community

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code snippet between <code> and </code>. Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close