Submit comment button not working when logged in
-
The title says it all. The weird thing is it works when I’m not logged in. Heres the code for the form, if it helps, but it isn’t that different from the default comment form.
<?php if ( $user_ID ) : ?>
<div class=”details”>Logged in as < a href=”<? php echo get_option(‘siteurl’); ?>/wp-admin/profile.php” ><? php echo $user_identity; ? >.
< a href=”< ?php echo get_option(‘siteurl’); ? >/wp-login.php?action=logout” title=”Log out of this account”>Logout »</div>
<?php else : ?>
<form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post”>
<input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” tabindex=”1″ />
<label>Name <?php if ($req) echo ” (required)”; ?></label>
<input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” tabindex=”2″ />
<label>Email <?php if ($req) echo ” (required)”; ?></label>
<input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” tabindex=”3″ />
<label>Website</label>
<?php endif; ?>
<textarea name=”comment” id=”comment” tabindex=”4″></textarea>
<input type=”submit” name=”submit” id=”submit” value=”Add your comment” tabindex=”5″ />
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />
<?php do_action(‘comment_form’, $post->ID); ?>
</form>
The topic ‘Submit comment button not working when logged in’ is closed to new replies.