Hi, do you recommend a method for displaying a user’s username in the nav?
Previously, I’d added a shortcode to display this however it doesn’t seem to load properly after switching to Pro Headers
i was using the following method prior. In the child theme functions.php
add_shortcode( ‘current-username’ , ‘ss_get_current_username’ );
function ss_get_current_username(){
$user = wp_get_current_user();
return $user->display_name;
}
I would then display this as a nav label > [current-username]
any thoughts?