Different profile page by role

i needed something similar to this so i added a rewrite rule to the same author.php file and there i added a redirect based on the user role, so to put this in your use case: First redirect editor to your theme author.php file by adding this rewrite rule function my_rewrite_rules_098( $wp_rewrite ) { $newrules … Read more

Creating an option for writing a post without an author attribution for a group blog on WordPress

This is entirely possible. Though, I would recommend using the Post custom metadata (i.e. custom fields, or better yet, a custom metabox). I would use a custom metabox, with two radio select options: Byline: (*) Author ( ) None Then, in your template file, you can output the author byline only if the appropriate post_meta … Read more

Display posts differently depending on which author wrote it

When you’re in the loop, you can use get_the_author() to get the author’s ‘Public’ name. Alternatively, you can use get_the_author_meta( ‘ID’ ) in the loop to get the author ID. So, modifying your psuedo-code: if ( 2 == get_the_author_meta( ‘ID’ ) ) { echo ‘<h2>John’s Perspective</h2>’ }

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