Support » Fixing WordPress » Dynamic Meta Section (sidebar)

  • I wondered if there was a way to only show the meta section on my sidebar on machines that I have logged in as the admin on ? The information is helpful to me, but I would rather it not be there for the casual viewer.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is some pretty old coding, and I personally havn’t tested it myself, but it sounds like it may work for you.

    global $HTTP_SERVER_VARS;
    global $user_level;
    if ($user_level < 1) {
    else {

    You’ll obviously have to customize it to suit your needs, but with some basic PHP knowledge it shouldn’t be hard to integrate. It would be interesting to see if it works.

    Original code posting found here:

    Thanks, that worked perfectly; I did modify it slightly … I got rid of the include and just put the code directly in the sidebar.php file; still, I am only getting the meta section on my logged in machine. Thanks!


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic Meta Section (sidebar)’ is closed to new replies.