Added new recentPosts functionality as per Mabel's request