WP Plugin: Selective Posts

January 9, 2012


I’ve written a WordPress Plugin that will display Recent Posts and allow you to exclude posts by Category ID. This is a feature sorely missing in the default Recent Posts Widget that WordPress includes.

So I’ve created a barebones plugin whose sole purpose is to simply add Category Exclusions for Recent Posts. Created for WP3.0+, Tested on my installation (3.3.x) just fine. I’ll only be keeping this updated until the next “big” WordPress release, at which time I can only hope they’ll include the exclusion feature out of the box.

Version 1.1 is out!

This plugin has now been updated to v1.1 – It now includes the ability to filter out posts by status types, and you can now order posts by ascending or descending. A good example of using these new features is a widget that displays upcoming posts!

Download it here:


Download from the WordPress Plugin Directory

Usage and Directions:

  1. Upload and install the Selective Posts Plugin zip file in the Plugins Menu (Plugins > Add New > Upload)
  2. Activate the plugin
  3. Drag the Selective Posts Widget from the Available Widgets area into the Sidebar (Appearance > Widgets)
  4. Declare a Title, Maximum Number of Posts to display, and a (negative) Category ID to exclude; Save
  5. To exclude multiple categories from being displayed, separate Category IDs with a comma (-1,-2,-3)

Previous Post

Next Post