Based on the mailing-list plugin which has a subscription page at the root level of the blog, I'm trying to automatically include the email of a user that is already logged-in. (As its a bother typing in an email address when you are already logged-in)
So when the user goes to the subscribe.php page, their email is already displayed in the subscription box
The code snippet is:
<input class="subscribe" name="email" type="text" id="email" />
I've tried adding either:
value="<?php echo $user_email ?>"
value="<?php echo (the_author_email()); ?>"
but nothing shows up.
Any help would be appreciated - thanks