• I’m using the following code to display: Welcome, Username along with a profile link next to it. However, the profile link gets echoed over and over again. I found it under my branding div and blog title div in thematic. Anyone know why it is showing up all over the header?

    <?php
          if ( is_user_logged_in() ) {
          global $current_user;
          get_currentuserinfo();
    
          echo 'Welcome,  ' . $current_user->display_name . '!' . "\n";
          echo '<li><a href="/profile">Profile</a></li>'; 
    
          }
          else {
          wp_register();
          }
    
    ?>
  • The topic ‘Difficulty With WordPress Function’ is closed to new replies.