knight1120764
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Commenting Error<div class="countcomments"><?php comments_number( '', ''. __( '1 Comment', 'tranquil' ) .'', '% '. __( 'Comments', 'tranquil' ) .'' ); ?></div> <strong><?php wp_list_comments( array( 'callback' => 'tranquil_comment' ) ); ?></strong> <?php paginate_comments_links(); ?> <div class="commentform"><?php $comments_args = array ( 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . __( 'Comment', 'tranquil' ) . '</label></br> <textarea id="comment" rows="8" name="comment" aria-required="true"></textarea></p>', ); $comments_args['fields'] = array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name', 'tranquil' ) . '</label> <span class="required">*</span></br> <input id="author" name="author" type="text" value="" size="30" /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email', 'tranquil' ) . '</label> <span class="required">*</span></br> <input id="email" name="email" type="text" value="" size="30" /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website', 'tranquil' ) . '</label></br> <input id="url" name="url" type="text" value="" size="30" /></p>', ); comment_form($comments_args); ?><div style="clear:both;"></div></div></div>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Themes and Templates
In reply to: Commenting ErrorBasically, I have a comment form. The form works perfectly.. it adds comments to be approved by an admin etc. The only issue is when it comes to viewing comments on the single posts page, you just get a warning come up.
“Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘tranquil_comment’ not found or invalid function name in /home/tranquil/public_html/john/wp-includes/comment-template.php on line 1334”.
Forum: Themes and Templates
In reply to: Commenting ErrorThis is going to sound really nooby.. but how would I add that to my functions.php file? I’ve completely lost my mind… I keep getting errors xD
Forum: Themes and Templates
In reply to: Commenting Erroro.O Ohh God. What a nooby mistake -.-‘ Haha awks.