How to get an array of all blog posts by a particular user?

How to get an array of all blog posts by a particular user?

by Zarah Khan -
Number of replies: 0

The site admin posts some blog posts on the Moodle site. Now I want to get an array of all those blog posts, so that I can display a part of some of them on the front page and style that part displayed on the front page the way I want. 

I'd like the posts (whose initial part is displayed on the front page) to be accessible to anyone visiting the website. 


In Moodle, we can get  an array of all the courses by the get_courses() function. So just like that, is there a way to get an array of all the blog posts by the site admin?

Average of ratings: -