If you’ve ever wanted to showcase one or more websites on your website, having a screenshot for each one provides a great visual. You can use this code snippet to create a shortcode that allows you to easily drop a screenshot on any WordPress page or post:
What’s nice is that the screenshot is cached for a period of time and periodically refreshed. So, if the remote website updates its homepage, your snapshot will reflect the changes in a timely fashion.
Once you’ve added the shortcode, just use it like this:
[snapshot url="http://www.wordpress.org" alt="WordPress.org" width="400" height="300"]
The result should look like this: