Post from front-end only by logged in users, form posts as “posted by:

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>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)