ID;
$awpa_post_authors = get_post_meta($post_id, 'wpma_author');
$enable_author_metabox_for_post = get_option('awpa_author_metabox_integration');
$multiauthor_settings = false;
if($enable_author_metabox_for_post && $enable_author_metabox_for_post['enable_author_metabox']==true){
$multiauthor_settings = true;
}
if(isset($awpa_post_authors) && !empty($awpa_post_authors && $multiauthor_settings == true)){
foreach ($awpa_post_authors as $key=>$author_id) {
$needle = 'guest-';
if (strpos($author_id, $needle) !== false) {
$filter_id = substr($author_id, strpos($author_id, "-") + 1);
$author_id = $filter_id;
$author_type = 'guest';
} else {
$author_id = $author_id;
$author_type = 'default';
}
newsphere_author_list($post_id,$author_id,$author_type, $author_avatar=false);
if( $key != ( count( $awpa_post_authors ) - 1 ) ){
echo ",";
}
}
}else{
$author_id = $post->post_author;?>
post_author;?>
display_name); ?>
get_guest_by_id($author_id);
?>
display_name); ?>