WP Admin Bar 2.2

This plugin will add a bar at the top of your template file with links to the admin sections of WordPress. However it will only add this bar for users that are logged in.

WP Admin Bar 2.2 was written by


The opinions expressed in comments are entirely the responsibility of the various contributors. While I will do everything within reason to ensure that they are not defamatory, I accept no liability for them or the content of links included in them.


Man, you’re good. Thanks a bunch Matt!


You misspelled “dashboard” in the 1.5 version of the plugin, just so you know. Great job, though.


Also, in Dr. Dave’s WP plugin manager, the link to directions is given as http://mattread.com/archives/2004/09/wp-admin-bar-2/, which brings up your excellent 404 page.


Thank you Anonymous. I’ve fixed the spelling and the 404 link. You should upgrade to 2.1 for the fixed spelling.


Matt, this upgrade is wonderful. I love the admin bar. You are the greatest!


Very nice plugin - already in use at my blog. Thank you!


Umm question. Why can’t I edit the php file now? I wanted to edit the CSS for it, yet it will not allow me to download it; permission denied. Tried CMODing it - no luck. Tried changing permissions on the file via my cPanel - no luck. Even tried uninstalling it via WP Plugin Manager, then manually installing it.. but everytime I try to manually install it, it brings up an error with Line 76 on it (which is the margin code line in CSS on it).

It works IF I have it installed via the WP Plugin Manager, but then I am unable to edit, download, or change the file in any way. Is this some bug issue with the install via WP Plugin Manager?? Any help would be appreciated hahahah Have a good weekend otherwise.



Oops, nevermind. Found I could edit the plugin via the admin panel hahahah . Heh… great plugin though man. Hope to see more goodies from you. Excellent work.


This admin bar is waaaay better than the old one! I had to hack together a little function to change the id for my css navigation buttons when someone is logged in so it doesnt look all retarded, but it was totally worth it hahahah I didnt even have to hack the shit outa the css in this one! Good job man!


very useful, and very easy to implement. great plugin, thanks!


wow, what a great plugin. The first one I will actually use.


Nice plugin, and thank you. Just so you know, I can’t view your site on my install of firefox 1.0 —- i just see the comments, which was kind of frustrating when i tried to figure out where to find the download. wonder if its my setup or if others have had the same pb? P


Paul, thanks for the heads up, I really screwed something up there. but should be fixed now. Thanks again.


Hi, Matt…I really like the Admin Bar plugin.

I was wondering if you might be publishing a version that provided links to write a new Page in addition to a new Post?

Thanks much…Neil


This site has been unknowingly owned, and is now being used by me to spread my message of total earth domination.


And by the way… your footer says:

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/mayhemma/public_html/wp-content/plugins/rk-stats.php on line 38


Hi,Thanks for the plugin. One problem, though: it works in my online website, but it can’t even be activated in my local version (i run apache on mac OS X locally to test the changes before they go online). I get these errors in the plugins page in WP admin section: Warning: file(.../wp-admin-bar-2.php): failed to open stream: Permission denied in .../admin-functions.php on line 932

Warning: implode(): Bad arguments. in .../admin-functions.php on line 932


ooops. Sorry, the “code” tag broke your design. Also, would you delete my home folder paths from the post above? Thanks a lot.


Ok, i found the problem myself in a few minutes (not that dumb, uh?). The file you are serving has 600 permissions, i just had to change it to 644.


It doesn’t seem to work with the theme “Random Image”. I suspect this is due to the header_graphic funtion in the head. Since I’ve done lots of customizing, I think I’m committed to that theme. Too bad, your plugin is awesome.


A simple, yet very useful plugin. :D

An idea for the next release is to allow the menu to be translated, using the __() function. In fact, I did it in my site and it didn’t took me more than 5 minutes.


Great plugin! :D

I modified the css so that the bar displayed along the bottom, it works great for me.


Thanks for this great plug-in! Just what I was looking for.


I get this error:

Warning: session_start() [/phpmanual/function.session-start.html]: Cannot send session cookie - headers already sent by (output started at /srv/www/htdocs/wp-content/themes/default/header.php:57) in /srv/www/htdocs/wp-content/plugins/general-messages.php on line 14 Warning: session_start() [/phpmanual/function.session-start.html]: Cannot send session cache limiter - headers already sent (output started at /srv/www/htdocs/wp-content/themes/default/header.php:57) in /srv/www/htdocs/wp-content/plugins/general-messages.php on line 14


Great plugin, very useful, thx hahahah


After using it for a while, I definetly love it. :D Thanks!


I may be blind hahahah - quite possible - but I don’t see anywhere to download the plugin for 1.5. Was is removed?


Downloaded, installed, activated. Don’t see any admin bar anywhere :-(


installed your plugin on my blog (running WP 2.0 RC1)

works great, but when i click on an individual entry, the text that loads is all of the sudden in bold.

i took out the call to the admin bar from my header.php and it went back to normal (ie: not bold)

any ideas?


nevermind, i fixed it hahahah

Special case for edit

            if (is_single() || is_page())
                    $edit_array = array('<strong>'.__('Edit').'<strong>', array('edit_post', $posts[0]->ID), 'post.php?action=edit&post='.$posts[0]->ID, 'edit-link');

the bold tag isn’t closed, so just change the above 2nd to



Good. Now i can admin easyly.


Thanks! Great plugin!

One hint though: In order to avoid blank pages as long the plugin is deactivated (e.g. when you upgrade Wordpress..), you’d better paste this line after the body tag in header.php:

instead of just:


Oops, the code part just didn’t show up. Hope you can fix this, admin..


Ill give it another try. I meant:

Instead of just:


As Solace stated, there is an open “strong” tag which will affect pages viewing a single post. This tag should be closed and the plugin re-released.


one of the best plugin’s. Thank you!!!!


I tried to expand the script to have an DELETE button on the single page. It shows the link and the links is correct. But i cant delete the post. I get a quot: “you have to enable sending referrers”. I read the Wordpress help on this one but it won’t work. Anyone with better results?


Downloaded, installed, activated. Don’t see any admin bar anywhere

I have the same problem as explained in comment 28. It seems that my header.php is not changed at all. Could you supply me/us with the tag that should be in there? In a next release you could also put this in the comments in your php file, maybe? Thanks in advance (i’m eager to try you plugin after reading all these enthousiastic comments)


I have modified it a little to work with WordPress MU. How should I name the modified plugin and credit your original work? I’d like to make the modified version available to the MU community.


Excellent plugin, I am gonna use to my site, thank u…

Related Posts