Show one post per author and limit query to 8 posts

I want to show 8 recent products from multiple authors on the frontpage. Need to show 1 recent product per author. Currently i’m using basic wp query to show recent 8 products. $args = array ( ‘post_type’ => array( ‘product’ ), ‘posts_per_page’ => ‘8’, ‘order’ => ‘DESC’, ‘orderby’ => ‘date’, ); // The Query $query … Read more

Get List of all the Authors

How could i get List of all the Authors? author.php file shows the Information about Individual Author. for example: http://domain.com/author/bj that returns the Bj’s Profile. if i enter http://domain.com/author it returns 404 Not Found Author page shows author’s avatar, Author’s Name and description. how can i list out all the authors? Need Help! 3 Answers … Read more

Improving a Stackoverflow “inspired” badge system to display badges in author page

I’ve been modifying a long abandoned plugin project that provides a Stackoverflow inspired badge system for WordPress. I have upgraded some of its code so it functions with the new WordPress version. Please view the plugin code here: http://pastebin.com/kCWWLPL2 The problem is that the original code did not provide a way to echo the badges … Read more

How can I list random authors from current post category?

The following lists authors of the current category. But I want this to be a list of 6 random authors from current post category. foreach((get_the_category()) as $category) { $postcat= $category->cat_ID; } $current_category_ID = $postcat; $current_cat_id = $current_category_ID; $author_array = array(); $args = array( ‘numberposts’ => -1, ‘cat’ => $current_cat_id, ‘orderby’ => ‘author’, ‘order’ => ‘asc’, … Read more