Wordpress form should be inside the tab

I want the default wordpress comment form (i.e. fields) inside the Wordpress tab in the Comments Plus section. Currently, the form is visible after the Comments Plus section thus even Twitter or Google is selected, these forms appear.

I tried 'comment_form' and the pair 'comment_form_before' and 'comment_form_after' hooks but still fails.

I also remove the HTML fields in assumption that Comments Plus includes the Wordpress form automatically but removing these fields will render no HTML form.

  • facebuko
    <div class="the-comment-container">
    
    				 <div class="post-bubble-arrow"></div>
    
    				<h3><?php comment_form_title( __('Leave a comment', THEME_NAME), __('Leave a Reply to %s', THEME_NAME) ); ?></h3>
    				<div class="cancel-comment-reply">
    					<?php cancel_comment_reply_link(); ?>
    				</div>
    				<?php
    				if ( get_option('comment_registration') && !$user_ID ) : ?>
    					<p><?php printf( __('You must be %s logged in %s to post a comment.', THEME_NAME), '<a href="'. get_option('siteurl') . '/wp-login.php?redirect_to='. urlencode(get_permalink()) .'">', '</a>'); ?></p>
    					<?php else : ?>
    					<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="PostCommentForm" class="comment-form">
    						<?php
    						if ( $user_ID ) : ?>
    							<p class="comment-logged-in-link"><?php _e('Logged in as', THEME_NAME); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. &nbsp; <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', THEME_NAME); ?>" class="boxLink comment-log-out"><?php _e('Log out', THEME_NAME); ?> &raquo;</a></p>
    							<div><?php do_action("my_facebook_comments"); ?></div>
    							<?php
    						else :
    							?>
    							<div><?php do_action('comment_form_before'); ?></div>
    							<p>
    								<label  class="overlabel" for="author"><?php _e('Name', THEME_NAME); ?> *</label>
    								<input type="text" class="textInput" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    							</p>
    							<p>
    								<label class="overlabel" for="email"><?php _e('Email', THEME_NAME); ?> *</label>
    								<input type="text" class="textInput" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    							</p>
    							<p>
    								<label  class="overlabel" for="url"><?php _e('Website', THEME_NAME); ?></label>
    								<input type="text" class="textInput" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    							</p>
    							<p>
    								<label  class="overlabel" for="comment"><?php _e('Comment', THEME_NAME); ?></label>
    								<textarea class="textInput commentTextarea" name="comment" id="comment" cols="50" rows="12" tabindex="4"></textarea>
    							</p>
    							<div><?php do_action('comment_form_after'); ?></div>
    							<div><button type="submit" class="btn"><span><?php _e('Add Comment', THEME_NAME); ?></span></button><?php comment_id_fields(); ?></div>
    							<?php
    						endif; ?>
    						<div><?php do_action('comment_form', $post->ID); ?></div>
    					</form>
    					<?php
    				endif; // If registration required and not logged in ?>
    
    			</div>

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.