Hallo zusammen,
in den Einstellungen habe ich folgende Option aktiviert:
"Breche Kommentare in 5 Seiten um, mit Top-Level-Kommentaren pro Seite und zeige die erste Seite standardmäßig an.Die neuesten Kommentare sollen oben stehen."
Anschließend erhalte ich auch bei den Kommentaren den Link "Neuere Kommentare »", jedoch werden trotzdem überall immer alle Kommentare angezeigt.
Hier mein Template:
HTML
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.
<p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php
$ix=0;
?>
<?php if ($comments) : ?><br/>
<strong>
<?php comments_number('Kein Kommentar', 'Ein Kommentar', '% Kommtenare');?>
vorhanden</strong><br/><br/>
<?php $comments = array_reverse($comments, true); ?>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li class="comment"> <strong><?php comment_author() ?>
</strong> schrieb am <?php comment_date('d.m.Y') ?> um <?php comment_time() ?> Uhr:
<?php if ($comment->comment_approved == '0') : ?>
<br><br><em><strong> » Vielen Dank für Ihren Eintrag. Dieser wird nach Überprüfung freigeschaltet.<br></strong></em>
<?php endif; ?>
<br />
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
[...]
Alles anzeigen