I want to put this in a template file for single posts.. Basically, I want the author of every post and the admin to have a little div box near the top with some pertinent information about the post. But I can't find a way to dynamically set the user_name or user-id_ inside the loop so I don't have to go in and paste code at the top of every post.
I'm currently echoing the shortcode, but perhaps there is a better way to do this and I may just be using the wrong code to get get the author's name?
<?php echo do_shortcode('[O_U user_ID="<?php echo $curauth->ID; ?>,1" blocked_message=""]
<div class="authorbox">Stuff for author and admin here</div>
It shows up for the admin user, but not the author.