Hi,
This is related to supreme directory theme. There are many filters you can use to customize it as required. Currently the theme has a filter for author link but it doesn’t have user ID passed into it so you can not use that but you can try following code which uses the default WP filter for a username changed to display name:
add_filter('get_the_author_user_nicename', 'get_the_author_user_nicename_cb', 10, 2);
function get_the_author_user_nicename_cb($value, $user_id){
if(geodir_is_page('single')){
$user_info = get_userdata($user_id);
if(isset($user_info->display_name)){
return $user_info->display_name;
} else{
return $user_info->first_name. ' ' . $user_info->last_name;
}
}
return $value;
}
Let me know if this helps you or not. We will also put the user id in the theme’s filter so one can use it.
Regards,
Patrik