I am working on a site driven by wordpress. I am trying to display the top 14 stories/articles posted, but at different points in the page. The 5 most recent articles will be displayed in one column on the left of the page while the other articles will be displayed under some google ads or something roughly equal in size. Here is what I have for the query:
$sql = 'SELECT *
FROM `wp_posts`
ORDER BY post_date DESC
LIMIT 0 , 14'
What I need now is a way to populate an array with post date, post content, post author, and url of the page where the post is located. Can someone push me off in the right direction?