How To Display Admin Section In WordPress?

In WordPress you may need to show an admin section in some part of your blog some times. Mainly we show this to get a direct link to our blog administration panel. We do this so that we can log in and log out easily of our WordPress blog.

Also we use this to show a registration link which is used for to register an account on our blog. We can include a WordPress link too and a XHTML validator link too below the WordPress admin links.

We can use the WordPress widgets to automatically show this without using any code. But some times we need to show this administration panel in a place where widgets cannot be placed. Then we use this code to display it.

Use the code given below to show WordPress Admin Panel links.

<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://www.wordpress.org/">WordPress</a></li>
<?php wp_meta(); ?>
<li><a href="http://validator.w3.org/check?uri=referer">XHTML</a></li>
</ul>

That’s it! This is a small post indeed!

Leave a Comment

{ 8 comments… read them below or add one }

Dana @ Blogging Update March 10, 2010 at 2:09 PM

Thanks for this tips saksham. From now on, i can put the admin link everywhere in my blog.

Reply

Saksham T March 10, 2010 at 2:20 PM

You’re welcome Dana! Thanks for visiting BJ.

Reply

Rajesh Kanuri @ TechCats March 10, 2010 at 4:49 PM

Nice Tips.. I think it is not wise idea to play with the admin panel.. as it may open the flaws to the hackers and may keep us in trouble..

Reply

Saksham T March 10, 2010 at 9:16 PM

You’re right, but this tip won’t cause any problem to you as it just shows the admin panel link, CSS Referrer check and nothing else. So no good to hackers from this tip. Though editing our admin panel page can cause dangers to us.

Reply

infopediaonlinehere March 11, 2010 at 8:25 PM

It is an interesting idea

Reply

Saksham T March 12, 2010 at 3:32 PM

Try it for sure.

Reply

Sourish May 7, 2010 at 1:23 PM

useful code of information here

Reply

Saksham Talwar May 7, 2010 at 4:52 PM

Nice to know that you found it useful. So used it in your blog?

Reply