April 23, 2009 at 10:45 pm #24679
Are there any plugins that show your recent posts in the sidebar with the image of the post (thumbnail)?
Thank youApril 25, 2009 at 7:54 pm #56739
I’m not totally sure what you mean by "image of the post (thumbnail)" but I’ll start with the easy part.
Here’s the code to do the five most recent posts:Code:< ?php $postslist = get_posts('numberposts=5&order=DESC&orderby=post_date'); foreach ($postslist as $post) : setup_postdata($post); ?>
- “>< ?php the_title(); ?>
< ?php endforeach; ?>
If your website uses the custom fields to assign an image to a blog post, you should be able to code the image into this loop. I don’t know of any program that will take a screenshot of each post and load them to your website automatically…
You must be logged in to reply to this topic.