[wp-hackers] Limiting # of posts when a category is viewed?

Scott Merrill skippy at skippy.net
Fri Jun 18 14:47:37 UTC 2004


Jason McIntosh said:
> I thought I'd see before I worked on this, if anyone knew of a hack to
> limit the # of posts displayed per page when a category is chosen.  My
> General category has 70 posts, some of which are on the large side, and
> thus when a category is clicked, it takes a LONG time to load the page.
>   I'd like to limit the listing and make use of the posts_per_page
> variable, or something similar.  Anyone have any thoughts/suggestions
> on this?

In Admin -> Options -> Reading, select the maximum number of posts you
want displayed _per page_, and then select "posts paged" in the drop-down
box.

Be sure to include a call to post_nav_link() so that visitors can navigate.



More information about the hackers mailing list