Have a look at the WP_Widget_Recent_Posts class in wp-includes/default-widgets.php to see how it is structured.
You can even copy and paste the class in your functions.php, rename it to something else and modify the class to display your images.
And don’t forget to add a register_widget('NameOfYourClassHere'); hooked to widgets_init.
Related Posts:
- Custom text box containing post titles
- Display recent posts with thumbnail within Masonry
- How do I use wp_get_recent_posts?
- Add Date to Recent Posts Widget?
- Recent Posts widget has some older posts at the top? [closed]
- how to show post content with post name in sidebar?
- Adding a badge to new blog post titles
- How to make slider show 4 recent news and news start from begining not from 4th
- Display recent post by tag
- Small intro before latest blog posts
- Recent post on single page from specyfic category
- How to display posts on template
- Help with “Recent Posts” Loop that is specific to a topic
- Get Each user recent post in wordpress
- How to display last 3 posts (recent posts) in a static page?
- Code for Recent Posts Widget
- Display list of most used tags in the last 30 days
- Modify recent post sidebar to show post thumbs with out plugins
- Querying post from a multisite network
- Display all comments or recent comments per user on author page
- Add inline HTML to posts published within last 24hrs
- Modifying recent post widget to include icons for post titles
- Add thumbnail to recent posts widget using filters
- How to exclude categories from recent posts, recent comments & category widgets?
- meta_query not working properly
- Unable to show recent custom post types in default recent posts widget
- Related Posts loop – offset
- Show one post per author and limit query to 8 posts
- How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?
- Empty excerpt using wp_get_recent_posts
- Display Custom Post Type in Recent Posts
- Show recent published posts
- How to hide a post from ‘Recent Posts’ widget?
- customizing recent posts
- If numberposts = -1 offset won’t work
- Display the date before the post title in recent posts widget
- How to display recent posts added in several custom post types
- Order posts by meta value and Date
- What’s the difference between “get_posts” and “wp_get_recent_posts” when used with “setup_postdata”?
- How can I show recent posts from same taxonomy as the post currently being viewed?
- How to display recent / random posts by its category
- Grabbing specific content
- How to get most recent commented post above new submitted post in WordPress?
- Two posts are loaded instead of one?
- Recent Posts widget without Title
- Change recent posts widget title
- How to start with post number x?
- Use wp_get_recent_posts with search term
- Create static front-page with 3-5 recent posts
- Display most recent post on homepage?
- the_excerpt not showing posts
- How to truncate titles in Recent Posts widget?
- Customizing wordpress default widgets?
- Recent posts with featured image or fallback image with permalink
- Recent Posts slider, using WP_Query(), loads duplicate sliders
- recent posts for different categories
- Excluding a category from wp_query breaks recent post widget
- How do I add recent posts to the menu?
- WP Bakery Load More Button loads the same posts
- How do I exclude recent post from recent post php widget
- How to output only blockquotes content from recent posts in a widget?
- menu item to display the most recent post
- Single-post preview repeats thumbnails in Jupiter Recent Posts widget
- WP_Query with offset and ‘orderby’ => ‘rand’, offset not working
- Custom recent-posts shortcode’s thumbnail image not in line with rest of code
- How to get date of post when using wp_get_recent_posts()?
- Proper way to display latest 5 posts grouped by post type?
- Reset WordPress Post Query to default
- Author list based on recently active
- How to get excerpt of the recent posts
- List most recently added posts (with a twist)
- Recent posts on homepage
- link to single most recent post, regardless of category
- Most recent post is missing from Author page
- How to obtain the recent posts without their content in an efficient way?
- How to check if the current page is at a specified path in the URL?
- ‘Recent Posts’ links open in new window, without copying the ‘WP_Widget_Recent_Posts’ class
- Posts modified in the last 48 hours
- How to avoid duplicates when creating recent network posts
- Latest posts by category — how to exclude current post?
- Show recent posts starting at a specific number archive
- How do I get the content excerpt of the recent post?
- Recent posts on homepage: different thumbnail based on logged in status and post category
- How to Link to Most Recent Custom Post of Same Term
- widget_posts_args not using the number of posts in widget
- 2 column recent post query not respecting float right [closed]
- Display css ONLY on most recent post of specific category?
- Sort / display recent posts by publish date
- Add hero image to home page (blog format) via the dashboard
- Exclude latest post from WP_Query taxonomy term loop
- List recent posts with link to first category
- Display recent posts on another site
- Why aren’t paragraphs breaking on this page?
- Get x recent posts by author?
- Problem with Front-Page.php loading recent posts
- Showing recent post of category in page
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Where to add offset?
- Manual excerpt length on recent posts slider
- Homepage custom recent news