WordPress Recent Posts Plugin
This PHP code will give your WordPress blog a recent posts list as I have on my sidebar to the right.
It's not actually a plugin, you need to cut and paste this code into the sidebar.php of your theme.
Recent Posts
Posted on Friday, Aug 4, 2006

11 Comments
It works great on my blog. How did you get it to work with comments as well?
Code to add: $sql .= " AND $tableposts.post_type = 'post' ";
After the line that contains the "WHERE" clause, I added:
$sql .= "AND $tableposts.post_type = 'post' ";
Great function! Thanks!
i.e I'm viewing my third latest post, so the list on the left will show posts 1 and 2, then 4 - 11??
Thanks!
Matt
However pasting the php into a new WP generated page just gets rendered as text. Do you know a way around this WP?
I can't believe WP does not have this kind of feature by default - the only thing users can do is list the entire post content for categories but I just wan the more user friendly title/description tag.
TIA, Brian
http://www.advanced-web-metrics.com/blog/all-posts/
Leave a Comment