I’m working on a new project and my client needs a site with blog.
But I’m a terrible PHP programmer.. So I created the entire site on HTML/CSS and the blog with wordpress.
OK, sounds good! but how to put the “Recent posts” from the blog(wordpress) in my index html page?
Method 1 : wp_get_recent_posts()
According to WordPress codex: wp_get_recent_posts() will return a list of posts. Different from get_posts which returns an array of post objects.
Method 2 : WordPress loop