I have my blog page limited to 5 posts on the main page, which I'm happy with. However, I want my tag pages to list much more, maybe 15 or so. How do I most easily make this change? There's no option on the reading page.
thx!
|
I have my blog page limited to 5 posts on the main page, which I'm happy with. However, I want my tag pages to list much more, maybe 15 or so. How do I most easily make this change? There's no option on the reading page. thx! |
|||
|
|
|
I would put this in functions.php:
|
|||
|
|
|
There are so many ways you can actually go about this and here's ONE... Create a file called
Save this file and place it into your theme directory along with your other template files. What will happen in this instance is that WordPress will check for the existance of Now like I said this is one way to achieve this, you can do all sorts of trickery and conditional wizardy in files that don't neccessarily have to be Further more it will give you a good idea of what WordPress checks for in order of existance; I.e.
So in this case your Really no limitations! |
|||||||||
|
|
You should be able to hook in right before the query is done using something like
If you wanted an even better solution, you could add a setting to the backend where you can easily change that value without having to go into code. |
||||
|
|