you can use
global $current_user;
get_currentuserinfo();
and then add
'post_author' => $current_user->ID
to your $new_post array.
then you can use
<p>Posted by: <?php the_author(); ?></p>
you can use
global $current_user;
get_currentuserinfo();
and then add
'post_author' => $current_user->ID
to your $new_post array.
then you can use
<p>Posted by: <?php the_author(); ?></p>