How to display an archive with multiple authors

This would make sense as an inclusion for the Co-Authors Plus plugin but you can’t always depend on plugin developers to anticipate all our needs. Sometimes we just have to build for ourselves! 🙂 (source: mikeschinkel.com) Co-Authors Stored as Terms of the Taxonomy ‘author’ Turns out what you want to do is not too hard. … Read more

Stomping WP_Query in author archive to facilitate pagination with custom queries

t31os says: [See edit history for previous code and comments] Using Ajax to paginate your queries I’ve put together some code that will fetch your posts and comments via ajax using simple prev/next navigation via ajax. 1) Replace all the code you posted in your author.php with the following.. <?php $cat_settings = array( ‘Articles’ => … Read more

Author Page – List of categories plus number of posts in that category

you can try a much less elegant but a working solution which is to get all of the users posts and count their categories: $query = new WP_Query(array( ‘author’ => $curauth->ID, ‘posts_per_page’ => -1 ) ); if ($query->have_posts()){ $u_cats = array(); while ($query->have_posts()){ $query->the_post(); $terms = wp_get_object_terms( $post->ID, ‘category’); foreach ($terms as $term){ if (is_array($u_cats[$term->term_id])){ … Read more

Commentlist: bypostauthor problem with children list

Read the comments in your linked forum post on wordpress.com. It’s just CSS. You are styling the elements based on the li.bypostauthor list element. Therefore every other element which is a child of this one will also receive these stylings. The ul.children list is inside the parent li list element. Look at your sourcecode, there … Read more

Restrict Search Results to Post Author

Something like this should work: function my_search_filter($query){ if($query->is_search) $query->set(‘author’, get_current_user_id()); return $query; }; add_filter(‘pre_get_posts’, ‘my_search_filter’);

author slug in the backend

Please read the codex on this function. Outside of the loop, your second arg must be a user ID. Inside the loop, WP grabs it from the post data. get_the_author_meta(‘user_nicename’, $userID);

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