*/ function get_author_meta_spans($user_id=false){ global $post; if (get_the_author()) { if (function_exists('get_multiple_authors')) { //plugin_support: PublishPress_Authors $authors = get_multiple_authors($post, false); } else { if (!$user_id) { global $authordata; $user_id = isset($authordata->ID) ? $authordata->ID : 0; } else { $authordata = get_userdata($user_id); } $authors = array($authordata); } $returns = array_map(function ($author) { $author_post_url=get_author_posts_url($author->ID); return '' . '' . get_avatar($author,16,'',$author->display_name,array("class"=>"avatar")). '' . '' . ''; }, $authors); echo join('', $returns); } } ?>