$user_level variable puzzle
-
I tried using this code to make a sidebar menu only visible to a certain user level, but it seems like $user_level won’t do the trick, even when a user is logged in at the admin level. I tried echoing the $user_level variable; it’s either empty or null – it doesn’t show anything. An example of what I tried is posted below. Can anyone spot an error in what I’m doing?
Thanks,
PEB<?php if ($user_level >= 5) { ?>
- <h2><?php _e(‘Meta’); ?></h2>
- <?php wp_loginout(); ?>
- “><?php _e(‘Valid XHTML’); ?>
<?php/* wp_register(); */?>
<?php wp_meta(); ?>
<?php } ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘$user_level variable puzzle’ is closed to new replies.