Aşağıdaki kodlar ile yazarın yazıları numara verilerek listeleniyor. Yalnız listelenecek yazı sayısını nasıl bağımsız yapabiliriz. Mesela 25 yazı listelenmesini istiyorum. Birde ikinci sayfaya geçinde numaralandırma yine 1'den başlıyor. ikinci sayfada 26'dan, üçüncü sayfada 51'den başlaması gerekiyor. Nasıl yapabiliriz?
<?php
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
?>
<h4>All Posts by <?php echo $curauth->nickname; ?>:</h4>
<ol type="1">
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time('d M Y'); ?>
</li>
<?php endwhile; else: ?>
<p><?php _e('No posts by this author.'); ?></p>
<?php endif; ?>
<!-- End Loop -->
</ol>
<?php pagination($additional_loop->max_num_pages);?>