Forum
Display a different number of blog posts on first page
I'd like to display a different number of posts on the first blog listing page from the subsequent listing pages. Currently /blog/index.php has:
<?php
perch_blog_recent_posts(8);
?>
but on the first page I'd like to display the 7 most recent posts instead.
My php knowledge is very basic but I'm guessing I could use an if else statement?? I'm not sure how to differentiate between the first page and the subsequent pages. Any help much appreciated.
At the moment the pagination only copes with evenly divided pages. You can do what you're after, but you'd need to handle setting
start
andcount
yourself.Happy to help if you need to discuss it [in Horsham] Louise!
Thanks Drew. Not quite as straightforward as I imagined then.
And many thanks Clive for your offer of help. I think I'll have to leave as is just for now but it would be good to discuss with you when I next see you (which will hopefully be soon).