WordPress allows you to vary how many blog posts you show on your blog, but it’s a single setting, and affects how many blog posts show over the whole website. This tip allows you to have a different number of posts for a particular category.
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.
View the Original article
0 comments:
Post a Comment