Plugin: Recently Updated Posts
Kommentare: 46 - 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 by Simon - 25. Januar 08 @ 14:33
Hi – when including pages, it doesn’t link to them!
Kommentar by 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 by 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 by Hannes - 29. Januar 08 @ 18:12
Hi Caroline! Great idea, I will add it to the next version, probably next week.
Pingback by [WP]Plugin Recently Updated Posts ?? at Memei BLOG - 31. Januar 08 @ 10:15
[...] Recently Updated Post ????sidebar??????????plugin??????????????????title???????????loop.php????????????????? [...]
Kommentar by 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 by 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 by 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 by 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 by Friedel - 5. Februar 08 @ 10:02
Ich benutze 2.3.2.
Wenn Du Zeit hast, lass’ es mich kurz wissen… :)
Kommentar by 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 by vsy - 6. Februar 08 @ 04:41
sorry, as last comment I use v0.4, not v0.3
Kommentar by vsy - 7. Februar 08 @ 08:33
thx, the v0.3 is works fine.
my server’s PHP version is 4.4.7 :)
Kommentar by Friedel - 7. Februar 08 @ 15:27
Super, jetzt funzt’s! :) Danke!
Kommentar by 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 by 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 by 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 by 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 by 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 by baron - 29. April 08 @ 01:18
hi. Thank you for plugin
perfect…
Kommentar by 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 by Hannes - 22. Mai 08 @ 14:38
turkbaron: yes. And it will also work with 2.5.1.1 and 2.5.1.2
Kommentar by Philix - 24. Juli 08 @ 12:05
This is a great plug in :)
Pingback by 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 by 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 by 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 by 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 by 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 by 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 by 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 by Ibnu Asad - 12. August 09 @ 17:52
Will this work on WordPress 2.8.4?
Kommentar by 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 by 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 by Scott Granneman - 6. September 09 @ 23:05
Any progress on being able to remove the dates when the posts are shown? Tks!
Kommentar by 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 by Hannes - 17. September 09 @ 11:25
Hi Kenneth,
you would have to modify the plugin file manually. Sorry.
f00f
Kommentar by 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 by 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 by 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 by 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 by 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 by Echio - 21. November 09 @ 22:06
include what code?? because i don’t see it….
Kommentar by Jörg - 30. November 09 @ 17:42
Hallo.
Ich nutze das PlugIn User Access Manager (http://www.gm-alex.de/projects/wordpress/plugins/user-access-manager/) und möchte deshalb in der Sidebar nur die Seiten verlinkt haben, die gem. UAM auch angezeigt werden dürfen. Das funktioniert soweit mit dem Original “Letzte Beiträge” aber leider nicht mit diesem PlugIn hier? Wie kann ich das hinbekommen, möchte nämlich auch die Pages mit einbezogen haben und ebenfalls die aktualisierten und nicht nur die Neuen Artikel/Pages…
Danke für Hilfe!
Kommentar by Richard - 24. Januar 10 @ 21:56
Is it possible to use the ‘showDate’ parameter in the functions when creating custom PHP commands?
The parameter is used in the widget, but not in the functions mentioned as ‘the interface’.
Any chance you could include that in a future version?
Kommentar by fask - 2. April 11 @ 10:44
but without use the widget code should I use?
Kommentar by Bo - 1. Mai 11 @ 21:23
Hi, thanks for the plugin. I have a problem. It’s showing incorrect dates. I checked my server clock and they are correct. Do you know what would be causing this?
Hinterlasse einen Kommentar