New answers tagged recent-posts
The function you are using, get_most_recent_post_of_user, won't work as it only retrieves the latest post from the author. It cannot retieve a list of posts Walks through each of a user's blogs to find the post with the most recent post_date_gmt. You will most probably be better of using either WP_Query or get_posts to achieve this. You should first ...
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.
Top 50 recent answers are included