WordPress.org

Forums

Comments after approval not showing (1 post)

  1. orko82
    Member
    Posted 1 year ago #

    Hello,

    After I give my approval for comments, the comments are not shown on my website. I think it's because i made a mistake in the stylesheet. I changed some English codes into Dutch codes. Now i think i changed too much.

    Can someone help me with my problem?

    See below for the stylesheet comments.php

    <?php /* Comments Template */
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'reacties.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    if (post_password_required()) { ?>
    <p class="no-comments"><?php echo __('This post is password protected. Enter the password to view comments.', 'mh'); ?></p><?php
    return;
    }
    $comments_by_type = separate_comments($comments);
    if (have_comments()) {
    if (!empty($comments_by_type['reacties'])) {
    $comment_count = count($comments_by_type['reacties']);
    ($comment_count !== 1) ? $comment_text = __('reacties', 'mh') : $comment_text = __('reacties', 'mh'); ?>
    <h4 class="section-title"><?php echo $comment_count . ' ' . $comment_text . __(' on ', 'mh') . get_the_title(); ?></h4>
    <ol class="commentlist">
    <?php echo wp_list_comments('callback=mh_comments&type=comment'); ?>
    <?php
    }
    if (get_comments_number() > get_option('Reacties per pagina')) { ?>
    <div class="comments-pagination">
    <?php paginate_comments_links(array('prev_text' => __('«', 'mh'), 'Volgend artikel' => __('»', 'mh'))); ?>
    </div><?php
    }
    if (!empty($comments_by_type['pings'])) {
    $pings = $comments_by_type['pings'];
    $ping_count = count($comments_by_type['pings']); ?>
    <h4 class="section-title"><?php echo $ping_count . ' ' . __('Trackbacks & Pingbacks', 'mh'); ?></h4>
    <ol class="pinglist">
    <?php foreach ($pings as $ping) { ?>
    <li class="pings"><?php echo get_comment_author_link($ping); ?>
    <?php } ?>
    <?php
    }
    if (!comments_open()) { ?>
    <p class="no-comments"><?php _e('Reacties gesloten.', 'mh'); ?></p><?php
    }
    }
    if (comments_open()) {
    $custom_args = array(
    'title_reply' => __('Plaats reactie', 'mh'),
    'comment_notes_before' => '<p class="comment-notes">' . __('Jouw e-mailadres blijft verborgen.', 'mh') . '</p>',
    'comment_notes_after' => '',
    'Ruimte voor reactie' => '<p class="comment-form-comment"><label for="comment">' . __('reactie', 'mh') . '</label>
    <textarea id="comment" name="comment" cols="45" rows="5" aria-required="true"></textarea></p>');
    comment_form($custom_args);
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic