Titus Bicknell | news, views and (a)musings

Wordpress Widget: Recent Changes

As Wordpress comes of age as a powerful CMS and Bliki the ability to see recently changed items has become an important feature.

This widget:

  • allows you to set a title for your list of recent items in the side bar
  • allows you to choose recently changed posts, pages or both
  • allows you to select 1-15 most recently modified items in your sidebar

NB all functionality of my Wordpress Widget: Recent Pages has been incorporated into this new widget.

Download Recent Changes and please leave a comment if you have feature requests and/or issues.

NB you can insert this function into your posts, pages, or templates with the following code:

<?php widget_RecentChanges(array ()) ?>

If you find this plug in useful please consider donating to its future development:

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon

11 Comments for Wordpress Widget: Recent Changes

baron | June 7, 2009 at 10:38 am

Works great, thank you

Alex | July 28, 2009 at 5:54 am

Works great thanks – but just needs a small adjustment to be valid XHTML

line 43
echo ‘‘.$RecentChange->post_title.’‘;

The href= needs double quotes to start and end around the $rc_url

Otherwise the W3C validator throws up about 40 errors

Toni Prug | August 5, 2009 at 7:40 am

Hi Titus, great plugin, exactly what i was looking for. I added couple of features to it, you can see screnshoots at:

http://hackthestate.org/wp-dev/plugin-recent-changes/

i’d like to send you the source code with new features, but i can’t find your email on this blog nor in readme.txt file.

Ken harper | August 12, 2009 at 9:05 pm

Hello there,

First, thx a ton for the work.

I’m a bit new to theme development and have my first theme all working but can’t seem to get any line breaks after each in your widget. I know it it must be something simple I’m missing, can you point me in a good direction?

Thx for you time.

k

Abikesha | August 21, 2009 at 5:24 am

Hi all,
Can you help me, how to exclude view some pages that i would change.

If in Recenpost i can write this :
Recent_Posts(exclude=249) ===> it can work

How i must write for Recent Changes plugin because i write :
widget_RecentChanges(array ()&exclude=2) ===> doesn’t work.

please help me!

Arnout | August 27, 2009 at 1:38 pm

Works fine, but had to change the database query. You should replace wp_posts with “.$wpdb->posts.” and add the ‘global $wpdb;’ statement above it. This fixes the cases where wordpress installations use a prefix for their databases.

Mat | October 19, 2009 at 3:34 pm

Thanks for the plugin, I like it but had to make the change from Arnout in order for it to work for me.

Author comment by titusbicknell | November 14, 2009 at 12:28 pm

Sorry for the delay in addressing your comments. I have issued a 0.2 release today that includes:
- Alex’s W3C validation fix
- Arnout’s $wpdb->posts fix

Ken: can you sned me a link to your install showing the plug in without line breaks?
Abikesha: I do not have an easy solution for you as my plug in is not based on the Recent Pages core code.

ultor | November 24, 2009 at 10:09 am

I am getting incorrect rc_url for posts but fine for pages.

I had to change get_page_link to get_permalink to work for me.

Greeny | December 23, 2009 at 2:55 pm

I wont to know why text widget code, give errors on validation w3c.How can we fix that.Thank you

Author comment by titusbicknell | December 27, 2009 at 10:50 am

Can you send me the link for a page with the Recent Changes plug in active so I can see what errors W3C identifies?

Leave a comment!

Theme Design by devolux.org