Posts Tagged ‘ Paginate ’

WP: Splitting Category Listing Into Multiple Pages

Jun 19th, 2008 | By dikiem | Category: WordPress Tips and Hack

Here is a little neat trick for Wordpress. Normally, you would use the WordPress tag “query_posts” to query against the database to list all of the posts relating to one or more categories.
Usually a simple query against a category would like something like this:

<?php query_posts(showposts=5&cat=$category);
while(have_posts()) { the_post();

}
?>

Basically all this is doing is show 5 posts [...]