I am trying to show the name of the currently logged-in user in a small text like 'Hello, username!'.
I tried to do this, but it doesn't work:
<p class="vam"> <?php if(is_user_logged_in()): $current_user = wp_get_current_user(); ?> Hello, <b><?php echo $current_user->display_name; ?></b>! <?php else:?> Hello, <span>Client</span>!`