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>’ }

Authors to be able to customize their author pages?

So if i understand correctly you want to let the authors style their profile and save the data in a way that every visitor will see their saved style, kind of like twitter lets you style your own author page. If so then using cookies won’t help you here since cookies are user specific and … Read more

How to show list authors with at least five posts published

Hacky way of doing it: global $wpdb; $min_posts = 5; // Make sure it’s int, it’s not escaped in the query $author_ids = $wpdb->get_col(“SELECT `post_author` FROM (SELECT `post_author`, COUNT(*) AS `count` FROM {$wpdb->posts} WHERE `post_status`=’publish’ GROUP BY `post_author`) AS `stats` WHERE `count` >= {$min_posts} ORDER BY `count` DESC;”); // Do what you want to $author_ids … Read more

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