Comment forms not working
11 years ago
Pamela Heady
Member
I had once successful comment post over the weekend and now, any one who tries to comment gets an ERROR: please leave a comment. I'm using Originative theme and here's my comments.php file. Can someone help?? Thanks!
<?php global $SMTheme; ?> <?php if ( post_password_required() ) { ?> <p><?php $SMTheme->_( 'password' ) ?></p> <?php return; } ?> <?php if ( $post->comment_status!='open' ) { ?> <p><?php $SMTheme->_( 'closedcomments' ) ?></p> <?php return; } ?> <?php if ( have_comments() ) { ?> <div id="comments"> <h3 id="comments-title"> <?php if (get_comments_number()==1) { printf( $SMTheme->_( 'formoneresponse' ), '<em>' . get_the_title() . '</em>'); } else { printf( $SMTheme->_( 'formmultiresponse' ), '<em>' . get_the_title() . '</em>', get_comments_number()); } ?></h3> <ul class="commentlist"> <?php wp_list_comments('callback=custom_comments'); ?> </ul> <?php if ( get_comment_pages_count() > 1 ) { ?> <div class="navigation clearfix"> <div class="alignleft"><?php previous_comments_link( $SMTheme->_( 'prevcomments' ) ); ?></div> <div class="alignright"><?php next_comments_link( $SMTheme->_( 'nextcomments' ) ); ?></div> </div><!-- .navigation .clearfix --> <?php } ?> </div><!-- #comments --> <?php } ?> <?php $args=array( 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . $SMTheme->_( 'comment' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf( $SMTheme->_( 'mustbe' ).' <a href="%s">'.$SMTheme->_( 'loggedin' ).'</a> '.$SMTheme->_( 'topostcomment' ).'.' , wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( $SMTheme->_( 'loggedinas' ).' <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">'.$SMTheme->_( 'logout' ).'</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'comment_notes_before' => '<p class="comment-notes">' . $SMTheme->_( 'comment_notes_before' ) . ( $req ? $required_text : '' ) . '</p>', 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( $SMTheme->_( 'comment_notes_after' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => $SMTheme->_( 'leavereply' ), 'title_reply_to' => $SMTheme->_( 'leavereply' ), 'cancel_reply_link' => $SMTheme->_( 'cancelreply' ), 'label_submit' => $SMTheme->_( 'addcomment' ) ); comment_form($args); ?> |
11 years ago
Alice
Support Service
Hi!
Could you give us the URL of your web site? |
11 years ago
Pamela Heady
Member
http://www.therecipehunter.com
I just had another person reach out to me saying that they could not leave a message. Yet I have had 2 other people successfully leave them. I also believe the email contact form is not working. |
11 years ago
pearlypoppies
Member
Hi.. have you been have to solve this problem? We are also facing the same issue!
|
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts