Set ‘posts paged’ in Options > Reading to control the number of posts in each view.
You might also want to include some code for a Next – Previous link.
Anonymous
can somebody explain this to me.
i want to do the same thing, but under Options -> Reading, it only has an option for Front Page.
thanks,
e
Anon,
set the number of posts for your “front page” and add the post_nav_link tag to your index.php.
See Wiki: http://wiki.ww.wp.xz.cn/?pagename=posts_nav_link
Anonymous
Thanks, but I got that part.
Let me explain further.
I want 8 posts per page on the “main” page, but 20 posts per page on the category page.
Like the original poster, I use .htaccess pages to “split things off” into 2 templates, but the posts/page setting in Options -> Reading seems to control the setting for all “views/templates”, as it is no doubt a global variable read from the settings.
Just wandering if it’s possible to set this number to be different for differnt “views”.
It is….. Beel answered me and someone else a couple of days ago….I’ll find because I forgot to bookmark it myself 🙂
If you are using 1.3a, when you get rboren’s plugin, just change the 1 to an 8 and set your posts to show to 20 and all will be well.
Anonymous
Ahh … thanks guys …
I think I’m using 1.2.something …
that explains why the earlier suggestion didn’t make sense.
I’ve figured out I can pass “posts_per_page=#” with .htaccess files and pretty much accomplish what I want.
I tried just adding this variable to the relevant template, but that didn’t work.
Presumably variables passed in the GET method take precedence over variables defined in .php files, so this must be why.