how do you display the latest authors blog post?
I have the below code:
<?php
$author = get_the_author();
$args = array( 'numberposts' => '1', 'author'=>$author );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
}
?>
However the above code display the most recent post for all users instead of a specific user.