Link to post author but exclude administrator (on single.php)

You can use the wordpress function user_can that accepts as arguments the id of the user and a string representing a capability or a role name (‘administrator’ in your case ) and returns a boolean value. http://codex.wordpress.org/Function_Reference/user_can Referred to your code you can try this <?php if( !user_can( get_the_author_meta( ‘ID’ ), ‘administrator’ ) ): ?> … Read more

hide something in single page if current author has only one post

count_user_posts will give you the number of posts for an author. get_the_author_meta gives you the user’s ID. Note that this needs to be in The Loop to get the correct user. if( 1 < count_user_posts( get_the_author_meta( ‘ID’ ) , ‘post’ ) ) { echo ‘<div>blah blah blah</div>’; }

Author list ‘special’ author first then ‘normal’ author

The ‘special’ authors have in usermeta a meta key called ‘werksortgodmodus’ with meta value ‘yes’. The ‘rest’ of the authors have ‘werksortgodmodus’ = no . You could e.g. order by the meta value with (PHP versions 5.4+): $blogusers = get_users( [ ‘role’ => ‘author’, ‘meta_key’ => ‘werksortgodmodus’, ‘orderby’ => [ ‘meta_value’ => ‘DESC’, ‘display_name’ => … Read more

Remove author archive

I would filter template_redirect, with an is_author() conditional, e.g.: function theme_slug_redirect_author_archive() { if ( is_author() ) { // Put your redirect code here; // Redirect to home_url(), or // return a 404, or whatever } } add_action( ‘template_redirect’, ‘theme_slug_redirect_author_archive’ );

no emails for a user account

As far as I’m aware, it’s not possible via Add New under the Users tab, however, the wp_create_user function will let you create users without an email address: $username=”someuser”; $pass=”swordfish”; $new_user_id = wp_create_user( $username, $pass ); You’d have to wrap that in a basic plugin and provide some sort of UI for adding users.

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