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.

Add number of members to “Right Now” dashboard widget

So here is the small snippet to show total number of users and all roles with user count. This code should go in the themes functions.php file. The code uses count_user function to fetch the array and show it up on Right Now dashboard screen. function wpse_60487_custom_right_now() { $users = count_users(); echo ‘<table><tbody>’; echo ‘<tr><td … Read more

Creating a folder structure

I don’t think what you want is URL rewriting. If I understand correctly, what you want is to restrict access to certain pages, posts, categories, etc., based on the current user’s role or capabilities: “If logged in, do something. If not, do something else (like prompt to login or register).” Modifying the output/behavior of a … Read more

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