Cant get blog name with get_option
You need access to the property of $username to get the name $user = wp_get_current_user(); $username= $user->display_name; Get option method will return the name of the site you have set in setting -> general options $url = get_option( ‘blogname’); If you need home URL then $url = get_option( ‘home’ );