got posts working through wordpress 'wp_get_recent_posts' function, rather than pulling through database directly