Pre-Filled Comment Form if Logged In
-
Using the form below.. if I was logged in, how do I have username/email not show up, and, instead have “Logged in as ___”. As of now, whether I’m logged in or not, the input fields for author and email are still visible.
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <input type="text" name="author" id="author" value="Your name.." />*<br /> <input type="text" name="email" id="email" value="Your email address.." />* <textarea name="comment" id="comment">Type your comment here..</textarea> <input class="submit" id="submit" name="submit" type="submit" value="POST COMMENT" /> <?php comment_id_fields(); ?> <?php do_action('comment_form', $post->ID); ?> </form>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Pre-Filled Comment Form if Logged In’ is closed to new replies.