Recent Posts Embed plugin for WordPress
Author: Sebastien Berthiau
Tags: recent posts list latest post links
Requires at least: 2.5
Tested up to: 2.8.6
Stable tag: 1.4.0
A tiny plugin to embed a list of recent posts in a page or a post…
== Description ==
Recent Posts Embed is a plugin for Wordpress that allows you to easily place list of recent posts anywhere in your site.
== Installation ==
1. Upload the `recent-posts-embed` directory and its content to the `/wp-content/plugins/` directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Place the tag `[recent posts]` in your post, and it will be replaced by a list of recent posts. You can also limit the result to the categories you need by specifying their IDs in the tag: `[recent posts = 1,7,15]` or exclude some categories like this: `[recent posts = -2,-4]`.
== Version History ==
* version 1.4.0 = multiple occurence, excerpt, leave a comment link.
* version 1.3 = Including/excluding categories, internationalization, bug fix
* Version 1.2 = added number of comments
* Version 1.1 = added option page to set the number of posts to display, and the date format.
* Version 1.0 = first version.
== Demo ==
Demo here: www.atelier-anna.fr
== Download ==
http://wordpress.org/extend/plugins/recent-posts-embed/
Please give me your feedback !
25 Responses to 'Recent Posts Embed plugin for WordPress'
Subscribe to comments with RSS or TrackBack to 'Recent Posts Embed plugin for WordPress'.

Really love your plugin! Exactly what I was looking for.
I have a question though:
Is there a way to get the excerpts from the recent posts rather than the permalink with the post header above it? So the hierarchy would be:
- Post entry
- Post excerpt
- Read more link
I want to do this because I want to use a page as my main index although I want to list at least 1 excerpt using this plugin. Any help or input would be great. =D
Liza
7 Jun 09 at 09:00
Hi Liza.
Please try this version. I’ve added the feature you requested.
If you think this is ok, I will add html customization and length of the excerpt in the option page for the future version.
Sebastien
9 Jun 09 at 10:31
I like the way that this plugin works, but I wonder if it is possible to use it more than one time on a page. I have a page that has a table with descriptions of each category and I’d like to list the most recent post in each category on that page. Every time I try to use [recent posts =catID] more than once it shows that instead of the post. Could you help me out?
Amy Gould
12 Jun 09 at 23:58
[...] Recent Posts Embed plugin for WordPress at dev.berthiau.com — 4:11pm via [...]
Daily Digest for June 12th | Snow Fox Creations : The Blog
13 Jun 09 at 04:43
great little plugin. One feature I’d like to implement is for the text of the “No comments : ” field to be linkable to the post. For example, I have “No comments : (Leave a Comment)” to encourage comments, but that Leave a Comment doesn’t link and is confusing to users.
Thanks.
hawks5999
16 Jun 09 at 21:10
Great plugin - just what I was looking for. I tested the version you made for Liza and I liked it. It would be a nice feature for a future version. Like Amy Gould, though, I would like to have more than one instance of Recent Posts (different categories) on my static home page. Any chance that ability will appear in an upcoming version?
Thanks.
Pat
5 Aug 09 at 06:57
Great Job!
All other plugins I found with similiar features are really to difficult to use.
And I prefer the custom version you made for Lisa. You should include these features in your next “official” version.
dhar
6 Aug 09 at 23:18
Hi
great plugin, better with the mod’s of excerpt
I wonder if you can include author and thumbnail, or perhaps a image as background of excerpt.
The thumbnail could be a image from custom field?
Thanks, and sorry my english
RC
10 Aug 09 at 19:29
I did a new little mod, but don’t know enough php.
The plugin takes the custom field “articleimg” to find its thumbnail, and then show in beside recent posts.
It need a little of css that I include in the style of the theme.
You can see here for example
http://parroquiaviva.org/secciones/
RC
11 Aug 09 at 20:16
Hey, I’d love to use this plugin, but I’m getting an error when I try to activate it. It says:
Fatal error: Cannot redeclare recent_posts() (previously declared in /wp-content/plugins/recent-posts-plugin/recent-posts.php:32) in /wp-content/plugins/recent-posts-embed/recent-posts-embed.php on line 57
Any help?
TK
5 Oct 09 at 06:27
Hello!
One feature i would like to have for this plugin is thumbnails, along with permalink and excerpts. Is that possible to achieve?
Thank you!
Arthur Mustafa
17 Oct 09 at 09:35
Hi, I really dig the plugin! I was wondering whether it is possible to add something “boolean”-eske to it: e.g. I only want to embed posts from the category X AND Y?
tom
23 Oct 09 at 12:07
I would like to organize the embedded posts by separate categories.
CAT 1
post 1
post 2
post 3
CAT 2
post 1
post 2
post 3
But the plugin only process the first recent posts directive not the second. Is there a work around?
Thanks!
PS. Great plugin BTW.
Alan
29 Oct 09 at 23:04
Hi,
the plugin’s settings page isn’t available with WP 2.8.5. How come?
There’s no link displayed in the plugins list.
Urbanty
19 Nov 09 at 18:18
Hi everyone,
Sorry for the late reply, I’ve been very busy.
Version 1.4 is out. This version includes:
- Multiple occurrence as requested by Pat, Amy Gould and Alan
- Excerpt as requested by Liza, Pat, RC, dhar and Arthur Mustafa
- Leave a Comment link requested by hawks5999
I will work on thumbnails on the next version.
Please give me your feedback.
Sebastien
22 Nov 09 at 12:50
Thank you for your report TK. This bug is fixed in version 1.4.0.
Sebastien
22 Nov 09 at 12:54
Great plugin i think would it be possible to use this code so that the recent posts within wordpress are shown outside ie i would like to add a section to my home page (NOT wordpress) which visitors read a click into the article with WP
Oliver
25 Nov 09 at 11:50
I’m sorry Oliver, but you can’t use this code outside wordpress as it uses built-in functions.
Sebastien
26 Nov 09 at 16:50
hi sebastien,
excellent plug in, would i be able to use it to lists recent posts just below the slideshow on the home page of my WP site?
http://www.gardenfork.tv
not sure what coding to type into the index.php file.
thanks, eric.
eric rochow
27 Nov 09 at 22:46
hi Sébastien,
Can we use your plugin as a widget in the sidebar or it’s only restricted to a page or a post?
Merci
Michel Julien
28 Nov 09 at 19:52
@Michel Julien:
Hi, sorry but the tag has to be in a page or a post.
Sebastien
28 Nov 09 at 21:08
@eric rochow:
Hi Eric. You don’t have to modify your index.php. Just edit your home page into WP admin, and place the tag [recent posts] after your slideshow.
Sebastien
28 Nov 09 at 21:18
Hi sebastien, I love this plugin but I need it in my template. Is there a way to add it into my template? I want to use it in the footer of my website. If not, can it be modified to do so?
Mike McEwan
2 Dec 09 at 06:30
Figured it out. Use the Executable PHP Widget and put this code in the following inside php tags:
$text = recent_posts_embed(’[recent posts]‘);
echo $text;
I hope that helps anyone else that needs this in a widget.
Mike McEwan
2 Dec 09 at 08:39
Hi Mike,
Thank you for this great solution !
I think I will add a widget version soon, with a setting page.
Sebastien
2 Dec 09 at 11:45