I wrote the following code to customize a category-archive page. pretty simple. Just want it to loop through all posts and page if necessary.
<?php global $post; $args = array('category' => 6, paged => '$paged'); $custom_posts = get_posts($args); foreach($custom_posts as $post) : setup_postdata($post); the_content(); ?> <hr /> <?php endforeach; ?>
I can't figure out what is wrong with this 'cause it shows only upto 5 posts. If thats the default, then how much should I put it to to let pagination work?