Plugin: Recently Updated Posts
Kommentare: 42 - Date: 23. Oktober 07 - Kategorien: Wordpress
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.
- 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

Kommentar von Simon - 25. Januar 08 @ 14:33
Hi – when including pages, it doesn’t link to them!
Kommentar von Hannes - 25. Januar 08 @ 17:07
Hey Simon, thanks for you writing.
I checked it on your website and you are right, the (atm.) first item (play ford) can not be clicked. It is however linked perfectly right when I take a look at the HTML source of your page. Therefore I fear it is a browser (display) issue (I use FF/XP). I send you more details via mail.
Good luck,
Hannes
Kommentar von Caroline - 27. Januar 08 @ 15:09
Nice plugin. Would be nice though if it would also show de “modified date” along with the title. :-)
Kommentar von Hannes - 29. Januar 08 @ 18:12
Hi Caroline! Great idea, I will add it to the next version, probably next week.
Pingback von [WP]Plugin Recently Updated Posts ?? at Memei BLOG - 31. Januar 08 @ 10:15
[...] Recently Updated Post ????sidebar??????????plugin??????????????????title???????????loop.php????????????????? [...]
Kommentar von vsy - 31. Januar 08 @ 19:45
Thx for your replay, I updated my article a moment ago.
seems UTF-8 code problem
–
If you use asia based (like Chinese) language to write your blog, in Recently Updated Post’s sidebar widget will show the error words when mouse over the post links in the title. ([a title=”blahblah“] the blue words will show garbage characters)
I follow the example of loop.php (it’s work good) and fix it.
open recently-updates-posts.php find these (line18)
.htmlentities($p->post_title).
change it to
.wp_specialchars(strip_tags($p->post_title)).
Kommentar von Hannes - 31. Januar 08 @ 20:07
Hello vsy,
thanks for translating that for me. I have already changed the code and will test it soon. If there are no problems with western charsets, it will of course be part of the next release.
If you have more suggestions feel free to post them here.
Keep up,
Hannes
Kommentar von Friedel - 2. Februar 08 @ 14:01
$skipUnmodifiedPosts: Hide newly published (but yet unmodified) posts [true]
Funktioniert irgendwie nicht bei mir…
Ob “true” oder “false”, es werden immer auch die zuletzt veröffentlichen Posts angezeigt…
Kommentar von Hannes - 2. Februar 08 @ 14:32
Hallo Friedel,
das ist seltsam. Bei mir tut’s was es soll, ohne dass ich es angebe, also default Wert. Welche WP Version benutzt Du? Vielleicht verhält sich 2.3 beim Veröffentlichen anders als 2.2? Lass uns dazu nächste Woche mal mailen, dann hab ich mehr Zeit dafür.
Grüße, Hannes
Kommentar von Friedel - 5. Februar 08 @ 10:02
Ich benutze 2.3.2.
Wenn Du Zeit hast, lass’ es mich kurz wissen… :)
Kommentar von vsy - 6. Februar 08 @ 04:04
hello, I use v0.3, but can’t active it.
got the error message:
–
Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /blog/wp-content/plugins/recently-updated-posts/recently-updated-posts.php on line 52
–
Kommentar von vsy - 6. Februar 08 @ 04:41
sorry, as last comment I use v0.4, not v0.3
Kommentar von vsy - 7. Februar 08 @ 08:33
thx, the v0.3 is works fine.
my server’s PHP version is 4.4.7 :)
Kommentar von Friedel - 7. Februar 08 @ 15:27
Super, jetzt funzt’s! :) Danke!
Kommentar von Hannes - 8. Februar 08 @ 13:44
vsy: Glad it works for you now. I suppose I used a PHP5-only feature in v0.4-beta
Friedel: Endlich geht’s bei Dir auch, schön :)
Pingback von unnamed feelings » Blog Archive » WP-plugins, ohne die ich nicht mehr kann… - 14. Februar 08 @ 12:12
[...] Recently Updated Posts The plugin Recently Updated Posts for WordPress finds the posts (and optionally pages) which were modified most recently. [...]
Kommentar von baron - 9. April 08 @ 16:52
hi there.com plugin but :
Does anybody know if tis script is compatible with Wordpress 2.5?
Thanks in advance for any help on this!
turkbaron
Kommentar von Hannes - 14. April 08 @ 09:22
turkbaron: glad you asked. I just checked it and had no problems on my 2.5 test blog.
Pingback von assembling » Blog Archive » links for 2008-04-18 - 18. April 08 @ 14:32
[...] State of the Nation » Plugin: Recently Updated Posts 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. (tags: wordpress plugin update recent display) [...]
Kommentar von baron - 29. April 08 @ 01:18
hi. Thank you for plugin
perfect…
Kommentar von baron - 10. Mai 08 @ 18:20
hi there .thanks for plugin:
Does anybody know if tis script is compatible with Wordpress 2.5.1 ?
Thanks in advance for any help on this!
regards
Kommentar von Hannes - 22. Mai 08 @ 14:38
turkbaron: yes. And it will also work with 2.5.1.1 and 2.5.1.2
Kommentar von Philix - 24. Juli 08 @ 12:05
This is a great plug in :)
Pingback von Wordpress theme: Modula White Dwarf - modula - 30. September 08 @ 13:31
[...] Recently Updated Posts to show a list of the most recently updated posts on the front page. [...]
Pingback von WordPress Plugins Used On The Michel Fortin Blog | The Michel Fortin Blog - 24. Dezember 08 @ 06:18
[...] Recently Updated Posts 0.3 Returns a list of the most recently updated posts. I used to use it, but it’s not really needed since I use Simple Tags plugin to list related posts instead. [...]
Pingback von 8 Post Plugins for WordPress | Tom B.'s Rambles - 3. Februar 09 @ 08:30
[...] up is Recently Updated Posts, an easy to install, easy to use plugin. It gives you a widget for your sidebar that will display a [...]
Kommentar von gjiada - 21. April 09 @ 14:31
It is possible to insert updated pages in the widget?
If not how I can use the advanced mode? Where I should insert the string? I can’t understand, but I’d like to have a list of updated pages together with posts.
Kommentar von Hannes - 23. April 09 @ 13:23
Hi Gjiada,
this plugin includes a widget that you can use.
If you want to use the advanced interface, you have to insert the code in your template files, probably into sidebar.php
Kommentar von gjiada - 23. April 09 @ 15:38
all the string? I will try, thanks.
It’s the only plugin which gives updates and not just new posts, it’s very useful,
Kommentar von James Swanson - 29. Juli 09 @ 14:58
Is there a way to use the $skipUnmodifiedPosts parameter in the sidebar widget? I tried using a TextBox and inserting the code but that did work.
Kommentar von Ibnu Asad - 12. August 09 @ 17:52
Will this work on Wordpress 2.8.4?
Kommentar von Hannes - 22. August 09 @ 10:04
Hey Ibnu Asad,
thanks for this question. I just upgraded to 2.8.4 now, so I could not answer earlier.
YES, Recently Updated Posts works fine with WordPress 2.8.4
f00f
Kommentar von Hannes - 22. August 09 @ 10:07
Hi James, $skipUnmodifiedPosts is not supported in the widget. To use it in the sidebar, you have to insert the code in the file sidebar.php of your theme.
Kommentar von Scott Granneman - 6. September 09 @ 23:05
Any progress on being able to remove the dates when the posts are shown? Tks!
Kommentar von Kenneth - 16. September 09 @ 20:14
Is it possible to change it manually how long text that is displayed? Right now it’s too long and goes on two lines, making it ugly in my theme.
Kommentar von Hannes - 17. September 09 @ 11:25
Hi Kenneth,
you would have to modify the plugin file manually. Sorry.
f00f
Kommentar von Kenneth - 10. Oktober 09 @ 23:19
Is it possible to change how many characters that are displayed? For example if you have long titles on your posts, the latest updated posts in sidebar will show on two rows, and brake the style sheet. For example the title “A sunny day in Philadelphia” would be something like “A sunny…”
Kommentar von Echio - 24. Oktober 09 @ 17:09
how do i use your == Parameters ==, do i just post it on a page or put it into the theme layout?
Kommentar von Hannes - 28. Oktober 09 @ 22:19
Hi Echio, if you want to use the parameters, you have to copy the code into one of your theme files, e.g. sidebar.php.
Kommentar von Echio - 3. November 09 @ 00:18
no i mean use it on a page or a post (not the sidebar because i know how to do that)
Kommentar von Hannes - 13. November 09 @ 12:53
Well, then the same holds. You would probably have to create a new page template and include the code there.
Kommentar von Echio - 21. November 09 @ 22:06
include what code?? because i don’t see it….
Einen Kommentar hinterlassen