Intra in fisierul wp-paged-comments.php al pluginului si adauga urmatoarele doua linii de cod scrise cu rosu. (undeva dupa linia 189)
$currentpage = (int) $_GET['wpc'] ? (int) $_GET['wpc'] : 1;
$_SESSION['pagina_curenta']=$currentpage;
$_SESSION['comentarii_pe_pagina']=$perpage;
$maxpages = $this->options['maxpages']-1;
Apoi intra in fisierul comments.php din tema ta si vei gasi ceva asemanator cu urmatorul cod. Ce este scris cu rosu nu exista in tema ta si va trebui sa adaugi tu pentru ca numerotarea comentariilor sa se faca corect.
<?php if ( $comments ) : ?>
<?php $nrcom = 1; ?>
<ol id=”commentlist”>
<?php foreach ($comments as $comment) : ?>
<?php
if ($nrcom == 1)
{
?>
<li id=”comment-<?php comment_ID() ?>” value=”<?php echo ($_SESSION['pagina_curenta']-1) *
$_SESSION['comentarii_pe_pagina']+1; ?>”><?php echo get_avatar( $comment, 32 ); ?>
<?php comment_text() ?>
<p><cite><?php comment_type(__(‘Comment’), __(‘Trackback’), __(‘Pingback’)); ?> <?php _e(‘by’); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href=”#comment-<?php comment_ID() ?>”><?php comment_time() ?></a></cite> <?php edit_comment_link(__(“Edit This”), ‘ |’); ?></p></li>
<?php
$nrcom–;
}
else {
?>
<li id=”comment-<?php comment_ID() ?>”>
<?php echo get_avatar( $comment, 32 ); ?>
<?php comment_text() ?><p><cite><?php comment_type(__(‘Comment’), __(‘Trackback’), __(‘Pingback’)); ?> <?php _e(‘by’); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href=”#comment-<?php comment_ID() ?>”><?php comment_time() ?></a></cite> <?php edit_comment_link(__(“Edit This”), ‘ |’); ?></p>
</li>
<?php
}
?>
<?php endforeach; ?>
Cam asta ar fi rezolvarea. Sper sa va descurcati, daca nu astept comentarii.
PS: Am verificat si merge, dar este posibil sa mai existe erori.
PS2: Atentie cu ghilimelele, deoarece wordpress-ul le transforma.
Eu folosesc pluginul noflow-free care sterge acel “rel=nofllow” deci este un plus de PR pt. comentatorii mei(doar cei fideli) si face si aceasta numerotare:d/
@DBlog: Face doar pentru sidebar sau pentru locul unde il pui.