Query to get last posts from authors of blog

get author ids instead of author nicename to get posts for muliiple authors using WP_Query(); $author_list = array(); foreach((array)$authors_list as $author) $author_list[] = $author->ID; // make comma separated string from author ids array $author_list = implode(‘,’, $author_list) and change wp query args $author_posts_args = array( ‘author’ => $author_list, ‘post_type’ => ‘post’, ‘cat’ => $colecti_id, ‘posts_per_page’ … Read more

Get users with different roles and call function on each of them (user_meta)

First, always var_dump() something if you aren’t sure what exactly you got. If you ain’t got XDebug installed and configured, just use printf( ‘<pre>%s</pre>’, htmlspecialchars( var_export( $dumpMe, true ) ) ); which will bring up an equally informative response. About the WP_User_Query) IIRC it returns objects which are instances of WP_User. You can test that … Read more

Personalized Author Area

Always the same with those clients … 🙂 Unfortunately your requirements sound pretty custom. Only advise I can give you is to use one of the custom field plugins like Advanced Custom Fields or Types. Those can speed up the development of custom pages like you have by a factor of 10, as you don’t … Read more

Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

In WordPress is pretty simple create custom roles and also assign specific capabilities to specific user roles (no matter if from core or custom). In my plugins I often create an user role that has all the capabilities required by my plugin, and then I attach some of thos capabilities to existing roles. I’ll give … Read more

One Click Access To Users Account In WordPress?

What do you mean by “takes them to the users account as if they’re the user”? Do you mean allow someone to log in as another WP user? If so then I think you are looking for a plugin like the User Switching plugin. That plugin only allows administrators to “switch” to another user. http://wordpress.org/plugins/user-switching/

Plugin permissions for Editor role

manage_options is an admin role so I’d still try and changing it even if you’ve changed the roles elsewhere. See http://codex.wordpress.org/Roles_and_Capabilities#Editor for more info. Try the following: add_options_page(‘Orbisius Simple Notice’, ‘Orbisius Simple Notice’, ‘edit_others_posts’, __FILE__, ‘orbisius_simple_notice_options_page’);