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

trying to add a author value in wp page links?

You check for <!–pageauthor:, but you expect it to start on the second character (1 === $has_part_title2) (you even have a typo there and left the 2 off). This will not work, because <!–pagetitle: is still part of that string (you don’t chop it off). You should either chop it off (do a substring in … Read more

List ALL posts by author on author archive

your get_posts overrides the normal query_posts query. For this to work properly you should use query_posts and merge in your numberposts setting with the original query, like so: global $wp_query; $args = array_merge( $wp_query->query, array( ‘numberposts’ => -1 ) ); query_posts( $args ); Then you’ll no longer need a custom loop either, you could just … Read more

Prevent 404 of Author pages without posts

Why should you get redirected to the 404 page if you display an author archive without posts? This isn’t the default behavior of WordPress. For example, if you go to the following URL: http://example.com/{permalink_base}/author/{author_name} WordPress calls the author.php template inside your theme folder. There you have a loop which will return all posts of the … Read more

Change author permalink using htaccess?

it’s simpler to do this via your theme’s functions.php or a plugin rather than .htaccess: function wpse31040_author_rewrite(){ add_rewrite_rule( ‘author/([0-9]+)/?$’, ‘index.php?author=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse31040_author_rewrite’ ); make sure to visit the permalinks settings page after adding this to flush rewrite rules.

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)