WordPress.org

Ready to get started?Download WordPress

Forums

Admin link doesn't work on other blogs when using Network (1 post)

  1. driz
    Member
    Posted 4 years ago #

    I'm using the following code in my theme to create the admin link, but it's not working for my other blogs, only the primary blog.

    Any ideas why?

    <?php global $current_user; get_currentuserinfo(); if ($current_user->user_level == 10 ) { ?><li><a title="Admin" href="<?php bloginfo('url'); ?>/wp-admin/">Admin</a></li><?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.