How to load next posts which lie in same filter?
-
I am showing 5 posts at a time with these three filters (under $20,000, price low to high, price high to low) and I have a view more button below it.
What I want is when I click on view more button it will show me the next 5 posts. This is quite easy but the thing is
if the user already clicked on ‘price high to low’ and then click on view more button it should show the next 5 posts in ‘price high to low’ order means in DESC order.
if the user already clicked on price under $20,000 and then click on view more button then it should show me the next 5 posts with price under $20,000
Any ideas how I can achieve this?
should I make separate arguments with if else statement for each of these filters along with view more button?
I am kind of stuck at this one. kindly give me any suggestions.
Regards
Junaid
- The topic ‘How to load next posts which lie in same filter?’ is closed to new replies.