I have my blog set up so that the reader can filter posts either by creatorname or by certain tags.
The problem is that I only want to display 5 posts per page and for example if I filter out posts with the tag 'alex' (and I have 7 posts), I can see the first page with the latest 5 posts tagged with 'alex' but when I switch to the second page I can't see the other two, I just get redirected to the homepage. Same goes with the author filter.
Can anyone help me out a bit please? I can show any parts of the code, the code is based on the Blog starter kit framework.
You might want to check out my Pagination Helper then - depending on how the rest of the code is organized, you may just need to change a couple of lines...
I will of course try to help you as much as possible :-)
Filtering posts
Hi,
I have my blog set up so that the reader can filter posts either by creatorname or by certain tags.
The problem is that I only want to display 5 posts per page and for example if I filter out posts with the tag 'alex' (and I have 7 posts), I can see the first page with the latest 5 posts tagged with 'alex' but when I switch to the second page I can't see the other two, I just get redirected to the homepage. Same goes with the author filter.
Can anyone help me out a bit please? I can show any parts of the code, the code is based on the Blog starter kit framework.
Thank you in advance!
Hi Alexandru,
You might want to check out my Pagination Helper then - depending on how the rest of the code is organized, you may just need to change a couple of lines...
I will of course try to help you as much as possible :-)
/Chriztian
I will try it out as soon as I get the chance.
Cheers Chriztian!
is working on a reply...