Support » Fixing WordPress » how to put the username into a variable in page.php?

  • homienick

    (@homienick)


    I’m trying to get the current logged in persons user name into a variable.. does anyone know how I would do that?

Viewing 1 replies (of 1 total)
  • Kafkaesqui

    (@kafkaesqui)

    Just scope $user_login to global:

    <?php global $user_login; ?>

    You’ll then have access to it.

Viewing 1 replies (of 1 total)
  • The topic ‘how to put the username into a variable in page.php?’ is closed to new replies.