I put a number before the post title in Wordpress and number ordering is desc.
This code in my theme's index.php:
<div id="content">
<?php if ( have_posts() ) : $post_nr = $wp_query->post_count; ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php echo $post_nr--;?>. Book Title: <span class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>. Writer: <?php the_tags(' '); ?>. Publisher: <?php the_category(', '); ?>. </span>
</div>
<?php endwhile; ?>
<?php endif;?>
</div>
My problem, it's code does not function if I use page navigation. If I click page2, page3, ..., it's numbering don't show real total post.
Any help me, please. What code should I add and placed where?