$user_ID unavailable in sidebar.php ?
-
The bigger picture is simply a different looking sidebar for when a user is logged in.
The problem is that I can’t seem to access $user_ID in my sidebar.php file. I’m stumped.
I’m using the following two lines to help me figure this out:
User identity: <?php echo $user_identity; ?><br/>
User ID: <?php echo $user_ID?><br/>When I put them in index.php, they return a value. Even when I put them immediately before <?php get_sidebar(); ?>.
But inside sidebar.php they return nothing.
I’m not using any plug-ins.
Any ideas?Thanks,
Roman
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘$user_ID unavailable in sidebar.php ?’ is closed to new replies.