Forum
Pagination and "start" option in perch_blog_custom array
Is there a particular reason why page pagination doesn't work when I have a "start" option in my array? When I remove it from the array, pagination works fine.
Also, when I paginate comments, the code outputs the links to each individual page in addition to the "previous" and "next" links, but when I use the same code for blog posts, I only get the "previous" and "next" links. How do I display individual page links in the pagination for blog listings?
Yes, setting start disables the pagination, as the pagination otherwise controls the result set cursor.
For the other issue, post your template and we'll take a look.
Thanks for clarifying that Drew!
Here's my template for comments:
And here is my template for the blog post list:
You have
page-links
included in the template. I'm presuming you've enabled them on the page function, yes?No, I didn't. They just show up for comments without having to enable them on the page function, so I didn't know it was necessary to enable them on perch_blog_custom. Its working fine now. Thanks Drew!