Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?

Figured it out, for anyone who needs help with this I’m sure you can use with categories/tags as well (can also use with radio inputs and checked=”checked”: <tr> <th><label for=”sorority”><?php _e(‘Sorority is…’) ?></label></th> <td><?php $sorority = get_the_author_meta( ‘sorority’, $user->ID ); ?> <select name=”sorority” id=”sorority”> <?php $terms = get_terms(‘sorority’); foreach ( $terms as $term ) { … Read more

wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs

I don’t know of a plugin but the easiest way is to just embed your stack flair: https://stackoverflow.com/users/flair For a more detialed solution I recommend you just fetch the Stack API using the the WordPress HTTP API, the docs are here: http://codex.wordpress.org/HTTP_API The Stack API is very easy to work with and returns JSON. For … Read more

Show list of authors with latest post NOT older than a month

Your query needs to include an argument to specify the author, and would need to be inside one of your “author” Loops. In fact, I see no need to Loop over your author data twice. Once should be fine. $display_admins = false; $order_by = ‘display_name’; $role=””; // ‘subscriber’, ‘contributor’, ‘editor’, ‘author’ – leave blank for … Read more

wp_list_authors including custom post types

Add the following function in functions.php and use custom_wp_list_authors function in place of wp_list_authors in your theme where you want to display authors who wrote custom post types post. function custom_wp_list_authors($args=””) { global $wpdb; $defaults = array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘number’ => ”, ‘optioncount’ => false, ‘exclude_admin’ => true, ‘show_fullname’ => false, … Read more

Author List page: Exclude based on last post date

WordPress itself does not store this info directly in database… yet you have some elegant options: you can hook into “publish post” and update list of “active users” when someone posts his/her published, you can store this information then in options table in serialized array. In this array you can have list of authors and … Read more

Display all authors and their only one latest post

In @Sagive SEO answer get_users_of_blog() is a depricated function. What is below code do get all authors display name and id in $authorsList Loop threw each author id and use WP_Query to get latest post of each author <?php $authors=get_users(); $i=0; //get all users list foreach($authors as $author){ $authorList[$i][‘id’]=$author->data->ID; $authorList[$i][‘name’]=$author->data->display_name; $i++; } ?> <ul> <?php … Read more

Add gravatar to author list

Basic setup <?php $args = array( ‘orderby’ => ‘nicename’ ); $users = get_users( $args ); foreach ( $users as $user ) { $avatar = get_avatar( $user->ID, ’80’ ); echo ‘<li><a href=”‘ . $user->user_url . ‘”>’ . $avatar . ‘<br />’ . $user->display_name . ‘</a></li>’; } ?> Excluding the Admin User Either check in the foreach: … Read more

List authors of site with link and gravatar

To answer your problems: Sorting by post count You can collect all the information you need in to an array and sort that array by number of posts , like this: //function to sort array by filed function authors_orderBy($data, $field){ $code = “if (\$a[‘$field’] == \$b[‘$field’]) {return 0;} return (\$a[‘$field’] < \$b[‘$field’]) ? 1 : … Read more