A few people have asked me this question, so I thought I would share it with you all (yes, both of you).  It’s a tiny snippet that’s not rocket science and you can find it if you look hard enough, but it’s oh, so useful.

So how do you find whether the current logged in user is an admin?

[info]

<?php if ( current_user_can('manage_options')) { echo 'I am an admin!'; } ?>

[/info]