// web user
$author_url = get_the_author_meta('user_url'); // e.g. http://www.example.com
$to_remove = array( 'http://', 'https://' );
foreach ( $to_remove as $item ) {
$author_url = str_replace($item, '', $author_url); // to: www.example.com
}
function get_user_role($id)
{
$user = new WP_User($id);
return array_shift($user->roles);
}
if(have_posts()) :
while(have_posts()) : the_post();
$aid = get_the_author_meta('ID');
//echo get_the_author().' | '.get_user_role($aid);
endwhile;
endif;
?>
Dermatología Médico-Quirúrgica y Venereología
JORDI SEGURA CORRALES
CLINICA DERMATOLOGICA DERMAS DE BARCELONA
EXPERTO EN DERMATOLOGÍA MÉDICO-QUIRÚRGICA, VENEROLOGÍA Y CIRUGÍA DERMATOLÓGICA. FUNDADOR DE CLÍNICA DERMAS.
Dermatología Médico-Quirúrgica y Venereología
JORDI SEGURA CORRALES
EXPERTO EN DERMATOLOGÍA MÉDICO-QUIRÚRGICA, VENEROLOGÍA Y CIRUGÍA DERMATOLÓGICA. FUNDADOR DE CLÍNICA DERMAS.