WordPress control number of posts per archive page

edit archive.php

replace this:

< ?php get_header(); ? >

with something along these lines:

< ?php get_header(); ? >
< ?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$args=array(
‘showposts’ => 10,
‘paged’=>$paged,
‘caller_get_posts’=> 1
);
query_posts($args);
? >

Leave a Reply

You must be logged in to post a comment.