The plugin Recently Updated Posts for WordPress finds the posts (and optionally pages) which were modified most recently. You can show them as HTML list or get a PHP array to do treat them how you like it.


Features:

  • Easy to use sidebar widget – no theme modification required
  • Flexible interface for advanced users who want more control


PHP Functions Provided by “Recently Updated Posts”:

hh_recently_updated_posts($num = 5, $skip = 0, $skipUnmodifiedPosts = true, $includePages = false,
			$hideProtectedPosts = true);
hh_rup_get($num = 5, $skip = 0, $skipUnmodifiedPosts = true, $includePages = false,
			$hideProtectedPosts = true);

hh_recently_updated_posts() prints the posts matching your criteria as HTML UL, while hh_rup_get() returns the matching posts as PHP array for further processing or custom output.


Both functions support the following parameters:

  • $num: Number of posts to find [default:5]
  • $skip: Number of posts to skip; useful if you want paging [0]
  • $skipUnmodifiedPosts: Hide newly published (but yet unmodified) posts [true]
  • $includePages: Include pages [false]
  • $hideProtectedPosts: Hide protected posts [true]

Download Recently Updated Posts from the wordpress.org plugin archive.

Feel free to ask questions in the comments section below.

Changelog:

v0.3 (2008-02-06):
- Added $skipUnmodifiedPosts parameter that was documented, but missing before. (thanks friedel)
- Changed escaping of special characters to work with asian charsets (thanks vsy)

v0.2:
- First public release