// 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;
?>
Médico especialista en estomatología
Félix Pérez Ucha
Máster en Salud Pública Oral, dedicación preferente a la implantología y cirugía mínimamente invasiva.
Médico especialista en estomatología
Félix Pérez Ucha
Máster en Salud Pública Oral, dedicación preferente a la implantología y cirugía mínimamente invasiva.