I use the following code on my category templates, which displays the amount of posts I have specified in the WP Admin panel. What I would like to be able to do is specify the amount of posts to show per page in the code itself. I use the WP-PageNavi plugin to show the page numbers.
I'd be really grateful for any help on this one.
<div id="archive-itms">
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="block">
<?php the_post_thumbnail('small-img'); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
</div>
<?php endwhile; ?>
</div>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="navigation">
<?php wp_pagenavi(); ?>
</nav><!-- #nav-below -->
<?php endif; ?>