I'm hoping someone can help me here. I want to put the the_author_login in the header of my site. I just can't work out how to start the loop in there. This is the code i'm using:
<?php if (is_home()) : ?>
Welcome: <?php the_author_login(); ?>
<?php endif; ?>
I'm sure the if clause is bad, but I couldn't think of anything else to use. It shows the 'Welcome:' bit but not the_author_login - so I guess the loop isn't working.
Any ideas what I've done wrong?
thanks in advance