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
    • Design Lord, Child of Thor
    <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(); ?>
    				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">
    						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>
    						else :
    							<div><?php do_action('comment_form_before'); ?></div>
    								<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" />
    								<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" />
    								<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" />
    								<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>
    							<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>
    						endif; ?>
    						<div><?php do_action('comment_form', $post->ID); ?></div>
    				endif; // If registration required and not logged in ?>
  • DavidM
    • DEV MAN’s Mascot

    Hiya facebuko,

    You're right, the standard WP comments section should be within the tabbed interface. Would it be possible to get a link to the site to see exactly how it is displaying?

    I've not seen anything like that yet and a link would help to see how that's working.

    Also, could you try it with the Twenty Eleven theme a quick moment to see if it does the same?


  • facebuko
    • Design Lord, Child of Thor

    Comments Plus works ok with Twenty Eleven theme such that WP comments section is inside the tabbed interface.

    So this is a theme issue. I might look the difference how Comment Template is called by Twenty Eleven and Mingle.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.