limiting posts display
I have a wp blog I’m setting up here: mosbef.com
I have the “display posts” pref set to 100, in options. so that every post shows up in it’s proper category page (my posts are images). But since the display posts option is such a high number, on the index page of the blog it lists every post. that is a large number of photos. What I’d like to do is to limit the post display to 10 posts, but only on my index page.
Is it possible to pass a variable to the have_posts function that limits the wp loop to, let’s say, 10 iterations?
like this maybe:
<?php if (have_posts('10')) : ?>
obviously I’ve tried this and it doesn’t work. anyone got any ideas?
thanks in advance
Update: Ok so i found a thread on Single Post Homepages and this seems to answer my question. or at least it works great. if anyone has any more info please leave it here, for my own benefit as well as the benefit of people trying to do something similar down the road. thank you!
- The topic ‘limiting posts display’ is closed to new replies.