display logged in user email in a subscription form?
-
Hello
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 boxThe code snippet is:
<input class="subscribe" name="email" type="text" id="email" />
I’ve tried adding either:
value=”<?php echo $user_email ?>”
or
value=”<?php echo (the_author_email()); ?>”but nothing shows up.
Any help would be appreciated – thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘display logged in user email in a subscription form?’ is closed to new replies.