Author archive doesn’t work [closed]

These things are fun because there are so many possibilities. I’ll start my series of answers here and you can accept it once we get it right. First thing, your site is allowing directory listings — this is bad for security — but at the moment is helping me see what might be causing the … Read more

Display Authors in a grid loop

Definitely over thinking it <div class=”section group”> <?php printf(‘<h1>%s</h1>’, the_title()); foreach($users as $user) { ?> <div class=”author”> <div class=”col span_1_of_3″> <div class=”authorAvatar”> <?php echo get_avatar( $user->user_email, ‘128’ ); ?> </div> <div class=”authorInfo”> <h2 class=”authorName”><?php echo $user->display_name; ?></h2> </div> </div> </div> <?php } ?> </div>

Can multiple authors be assigned on a single custom post?

Easy way: use this plugin https://wordpress.org/plugins/user-role-editor/ More complicated way: You can use functions.php to add all of the custom capabilities to a specific roles. But ofc you need a name of these capabilities. This code is usefull if you want to add X same capabilities to X roles. Add to functions.php function wphm_add_custom_capabilities_to_roles($roles, $capabilities) { … Read more

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