<?php if (current_user_can("manage_options")) : ?>This will show a link saying 'Admin' if an admin is logged in, for all other users and logged-out users nothing is displayed.
<a href="<?php echo bloginfo("siteurl") ?>/wp-admin/">Admin</a>
<?php endif; ?>
Should add- this works at version 3.2.x and is likely to for all of the 2.x & 3.x branches- but may not in the future.
ReplyDeleteAnd if you're still using 2.x - please upgrade now!