Skip to main content


This topic contains 1 reply, has 0 voices, and was last updated by  kennethjaysone 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #24679

    Are there any plugins that show your recent posts in the sidebar with the image of the post (thumbnail)?

    Thank you


    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:

    < ?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…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star