how to put the username into a variable in page.php? (2 posts)

  1. homienick
    Posted 8 years ago #

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

  2. Kafkaesqui

    Posted 8 years ago #

    Just scope $user_login to global:

    <?php global $user_login; ?>

    You'll then have access to it.

Topic Closed

This topic has been closed to new replies.

About this Topic