How do I “trash” a custom post type post while logged in as Admin

Might you need one of these Admin capabilities? delete_others_pages delete_others_posts delete_pages delete_plugins delete_posts delete_private_pages delete_private_posts delete_published_pages delete_published_posts Unless you’ve modified the default capabilities for Administrator, to remove one or more of these capabilities, you should be able to delete any Post (of any Post-Type) as an Admin user.

Show posts from specific roles

Code you are after: <?php $wp_user_search = new WP_User_Query( array( ‘role’ => ‘administrator’ ) ); $admins = $wp_user_search->get_results(); $admin_ids = array(); foreach($admins as $admin) { $admin_ids[] = $admin->ID; } $args = implode(‘,’, $admin_ids); query_posts(“author=$args”); ?>

Show 10 latest posts only from users with contributors role

you can use the author parameter of WP_Query here is a simple function to get you going with a hook to a shortcode and another hook to render this shortcode inside a simple text widget: function ten_latest_of_contributers($atts = null){ global $post; //store the current post data $temp = $post; $contributors = get_users(array(‘role’=> ‘contributor’)); //then create … Read more

Plugin access and Roles

By default only super admins/administrators can edit plugin/theme settings. http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table If you want to give access to plugin/theme settings (or other stuff) for an editor you can add a capability to a role. How can I allow the Editor Role to change Theme Settings?

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