Need help? Check out our Support site, then


Comments don't show up

  1. I'm working on this website: http://www.readyscholar.co.uk, with theme Hafniumicy, and unfortunately, my comments don't show up. See for example the page http://readyscholar.co.uk/about-me/

    The comments are visible and approved in the back-end, but on the pages, the new (or existing) comments don't appear.

    When I switched to Twentyten, they did appear, so it must be theme specific.

    This is the code of my comments.php file:

    <?php<br /> if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {<br /> die ('Please do not load this page directly. Thanks!');<br /> }<br /> ?></p> <p><?php if (comments_open()) : ?></p> <p><a></a><br /> <div class="post-box post-box-replies post-box-comments"><br /> <div class="title"><br /> <h2><?php echo __('Comments', PADD_THEME_SLUG); ?></h2><br /> <p><?php echo __('Tell us what do you think.', PADD_THEME_SLUG); ?></p><br /> </div><br /> <div class="interior post-box-comments-interior"><br /> <?php if (post_password_required()) : ?><br /> <p class="no-comments"><?php echo __('This post is password protected. Enter the password to view comments.', PADD_THEME_SLUG); ?></p><br /> <?php elseif (!empty($comments_by_type['comment'])) : ?><br /> <ol class="comments-list"><br /> <?php wp_list_comments('type=comment&callback=padd_theme_single_comments'); ?></p> <p> <?php else : ?><br /> <p class="no-comments"><?php echo __('There are no comments on this entry.', PADD_THEME_SLUG); ?></p><br /> <?php endif; ?><br /> </div><br /> </div></p> <p><a></a><br /> <div class="post-box post-box-reply" id="reply"><br /> <div class="title post-box-reply-title append-clear"><br /> <h2><?php comment_form_title('Add a Comment', 'Add a Comment to %s'); ?></h2><br /> <p><?php echo __('Fill in the form and submit.', PADD_THEME_SLUG); ?></p><br /> </div><br /> <div class="interior post-box-reply-interior"><br /> <?php if (get_option('comment_registration') && !is_user_logged_in()) : ?><br /> <p>You must be <a>">logged in</a> to post a comment.</p><br /> <?php else : ?><br /> <form action="<?php echo bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="comment-form"><br /> <?php if ( is_user_logged_in() ) : ?><br /> <p>Logged in as <a>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a>" title="Log out of this account">Log out »</a></p><br /> <?php else : ?><br /> <p class="input input-small input-name"><br /> <label for="comment-author"><?php echo __('Name', PADD_THEME_SLUG); ?>: <small><?php if ($req) echo __("(Required)", PADD_THEME_SLUG); ?></small></label><br /> <span><input type="text" name="author" id="comment-author" value="<?php echo '' != esc_attr($comment_author) ? esc_attr($comment_author) : ''; ?>" size="22" tabindex="1" /></span><br /> </p><br /> <p class="input input-small input-email"><br /> <label for="comment-email"><?php echo __('E-mail', PADD_THEME_SLUG); ?>: <small><?php if ($req) echo __("(Required)", PADD_THEME_SLUG); else echo __("(Optional)", PADD_THEME_SLUG); ?></small></label><br /> <span><input type="text" name="email" id="comment-email" value="<?php echo '' != esc_attr($comment_author_email) ? esc_attr($comment_author_email) : ''; ?>" size="22" tabindex="2" /></span><br /> </p><br /> <p class="input input-website"><br /> <label for="comment-url"><?php echo __('Website', PADD_THEME_SLUG); ?>: <small><?php echo __("(Optional)", PADD_THEME_SLUG); ?></small></label><br /> <span><input type="text" name="url" id="comment-url" value="<?php echo '' != esc_attr($comment_author_url) ? esc_attr($comment_author_url) : ''; ?>" size="22" tabindex="3" /></span><br /> </p><br /> <?php endif; ?><br /> <p class="inpit"><br /> <label for="comment-comment"><?php echo __('Comments', PADD_THEME_SLUG); ?>:</label><br /> <span><textarea name="comment" id="comment-comment" cols="22" rows="5" tabindex="4"></textarea></span><br /> </p><br /> <div class="comment-notify-submit"><br /> <?php<br /> if (function_exists('show_subscription_checkbox')) {<br /> show_subscription_checkbox();<br /> }<br /> ?><br /> <p class="comment-submit"><br /> <button type="submit" name="submit" value="submit" id="comment-submit" tabindex="5" ><span><?php echo __('Submit', PADD_THEME_SLUG); ?></span></button><br /> <small><?php cancel_comment_reply_link(); ?></small><br /> </p><br /> <div class="clear"></div><br /> </div><br /> <?php comment_id_fields(); ?><br /> <?php do_action('comment_form', $post->ID); ?><br /> </form><br /> <?php endif; ?><br /> </div><br /> </div></p> <p><?php endif; ?><br />

    I'm not a php-expert, but maybe one of you can see if something's wrong? Any help appreciated!

  2. Now with returns:
    </p> <p><?php<br /> if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {<br /> die ('Please do not load this page directly. Thanks!');<br /> }<br /> ?></p> <p><?php if (comments_open()) : ?></p> <p><a></a><br /> <div class="post-box post-box-replies post-box-comments"><br /> <div class="title"><br /> <h2><?php echo __('Comments', PADD_THEME_SLUG); ?></h2><br /> <p><?php echo __('Tell us what do you think.', PADD_THEME_SLUG); ?></p><br /> </div><br /> <div class="interior post-box-comments-interior"><br /> <?php if (post_password_required()) : ?><br /> <p class="no-comments"><?php echo __('This post is password protected. Enter the password to view comments.', PADD_THEME_SLUG); ?></p><br /> <?php elseif (!empty($comments_by_type['comment'])) : ?><br /> <ol class="comments-list"><br /> <?php wp_list_comments('type=comment&callback=padd_theme_single_comments'); ?></p> <p> <?php else : ?><br /> <p class="no-comments"><?php echo __('There are no comments on this entry.', PADD_THEME_SLUG); ?></p><br /> <?php endif; ?><br /> </div><br /> </div></p> <p><a></a><br /> <div class="post-box post-box-reply" id="reply"><br /> <div class="title post-box-reply-title append-clear"><br /> <h2><?php comment_form_title('Add a Comment', 'Add a Comment to %s'); ?></h2><br /> <p><?php echo __('Fill in the form and submit.', PADD_THEME_SLUG); ?></p><br /> </div><br /> <div class="interior post-box-reply-interior"><br /> <?php if (get_option('comment_registration') && !is_user_logged_in()) : ?><br /> <p>You must be <a>">logged in</a> to post a comment.</p><br /> <?php else : ?><br /> <form action="<?php echo bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="comment-form"><br /> <?php if ( is_user_logged_in() ) : ?><br /> <p>Logged in as <a>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a>" title="Log out of this account">Log out »</a></p><br /> <?php else : ?><br /> <p class="input input-small input-name"><br /> <label for="comment-author"><?php echo __('Name', PADD_THEME_SLUG); ?>: <small><?php if ($req) echo __("(Required)", PADD_THEME_SLUG); ?></small></label><br /> <span><input type="text" name="author" id="comment-author" value="<?php echo '' != esc_attr($comment_author) ? esc_attr($comment_author) : ''; ?>" size="22" tabindex="1" /></span><br /> </p><br /> <p class="input input-small input-email"><br /> <label for="comment-email"><?php echo __('E-mail', PADD_THEME_SLUG); ?>: <small><?php if ($req) echo __("(Required)", PADD_THEME_SLUG); else echo __("(Optional)", PADD_THEME_SLUG); ?></small></label><br /> <span><input type="text" name="email" id="comment-email" value="<?php echo '' != esc_attr($comment_author_email) ? esc_attr($comment_author_email) : ''; ?>" size="22" tabindex="2" /></span><br /> </p><br /> <p class="input input-website"><br /> <label for="comment-url"><?php echo __('Website', PADD_THEME_SLUG); ?>: <small><?php echo __("(Optional)", PADD_THEME_SLUG); ?></small></label><br /> <span><input type="text" name="url" id="comment-url" value="<?php echo '' != esc_attr($comment_author_url) ? esc_attr($comment_author_url) : ''; ?>" size="22" tabindex="3" /></span><br /> </p><br /> <?php endif; ?><br /> <p class="inpit"><br /> <label for="comment-comment"><?php echo __('Comments', PADD_THEME_SLUG); ?>:</label><br /> <span><textarea name="comment" id="comment-comment" cols="22" rows="5" tabindex="4"></textarea></span><br /> </p><br /> <div class="comment-notify-submit"><br /> <?php<br /> if (function_exists('show_subscription_checkbox')) {<br /> show_subscription_checkbox();<br /> }<br /> ?><br /> <p class="comment-submit"><br /> <button type="submit" name="submit" value="submit" id="comment-submit" tabindex="5" ><span><?php echo __('Submit', PADD_THEME_SLUG); ?></span></button><br /> <small><?php cancel_comment_reply_link(); ?></small><br /> </p><br /> <div class="clear"></div><br /> </div><br /> <?php comment_id_fields(); ?><br /> <?php do_action('comment_form', $post->ID); ?><br /> </form><br /> <?php endif; ?><br /> </div><br /> </div></p> <p><?php endif; ?><br />

  3. Sorry, that doesn't seem to work.

  4. You are in the wrong forum. You need to be at WordPress.ORG for help with that version of the software.

  5. Ok thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags