• 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

    • This topic was modified 1 year, 11 months ago by Jan Dembowski.
    • This topic was modified 1 year, 11 months ago by bcworkz. Reason: formatting fixed
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Asked and answered here:
    https://www.ads-software.com/support/topic/how-to-run-wp-query-with-multiple-values/

    Anyone interested can continue there. To keep further replies in one place, this topic is closed.

    @jasghar — please refrain from asking the same question in multiple places. It can possibly waste the efforts of other forum volunteers. You’ve been warned in the past about posting duplicate questions. I see what you did here. I recognize it’s not exactly duplicating questions in the same manner, but the result is the same. Had you started a new topic without asking the same thing tagged onto another topic, that would have been OK.

Viewing 1 replies (of 1 total)
  • The topic ‘How to load next posts which lie in same filter?’ is closed to new replies.