How to make user only see their own post?
Hi,
I have question regarding User access.
I would like to make the users to be able to see only their own listing in
wp-admin dashboard. User A only can see the listing posted by himself, User B only can see the listing posted by herself. If they have never made any post before, then it shall display the list without posts. Currently it will display the lists to view.
I have tried to put following code at function.php in the theme but it now work. I refer this steps from internet.
function posts_for_current_author($query) {
if($query->is_admin) {
global $user_ID;
$query->set('author', $user_ID);
}
return $query;
} add_filter('pre_get_posts', '
posts_for_current_author');
Problem with this code: Not able to add new listing. It will display a blank page when "Add New".
** I did use this plugin from
http://www.shinephp.com/user-role-ed...dpress-plugin/
Pls help. Thanks.