I used this tip on a category that's very image intensive to show only 5 posts rather than 10 posts per page. This allowed me to reduce page load times on this category page, whilst still leaving the rest of the website easy to browse.
Open up archive.php and add the following code before the loop.
And then after the loop, just paste this:
You can use any of the conditional tags to determine when to show more or less pages, I chose to use the function that checks for a category by name. I hope it comes in useful!
Thanks to Dan Harrison of WP Doctors for the tip!
View the original article here
This post was made using the Auto Blogging Software from WebMagnates.org This line will not appear when posts are made after activating the software to full version.
0 comments:
Post a Comment