Filter dashboard custom post listing by user

pre_get_posts is correct. the code from will prevent any non-admin from seeing anyone else’s posts. http://blog.rutwick.com/display-only-the-posts-authored-by-the-current-wp-user-on-the-posts-page-in-the-back-end to limit that to only 1 post type you’d add in one more condition and check $typenow == ‘your_custom_post_type’: add_action(‘pre_get_posts’, ‘filter_posts_list’); function filter_posts_list($query) { //$pagenow holds the name of the current page being viewed global $pagenow, $typenow; //$current_user uses … Read more

Control Category of each user can post

I actually have a plugin that does just that, it adds a category dropdown to the user profile edit: Only user who can manage_options (admin) can see that field. and once the user is logged in to post he sees this: Update Its now in the plugin repository http://wordpress.org/extend/plugins/author-category/ enjoy.

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