• Resolved trman

    (@trman)


    I have a public front page for search and the shortcode on this page is;
    [pdb_search target_page=”search-results”]. The search results page referenced has this short code: [pdb_list filter=’approved=yes’ sort=true]

    When I search for some records and say 100 are returned out of 400 total on the search results page. However when those results are then sorted the entire database of 400 records is shown! Also when you click the “next page” link at the bottom of the page on the 100 record search results, it shows the entire database of 400 records again.

    I have tried clearing the browser cache, using a different browser and not being logged in to WP, it doesn’t make any difference. I read a thread about someone having this same problem that solved it by making the results page not have a parent, however none of my pages have parents. I do not have any type of caching turned on in WP.

    I will be glad to send you the link in private if you want to see for yourself. Any help is appreciated.

    https://wordpress.org/plugins/participants-database/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Try turning off “AJAX Searches” in the settings under the advanced tab.

    Thread Starter trman

    (@trman)

    That solved part of the problem. When I click the next page link, it no longer gives 400 records. However it still shows all 400 records when I try to change the sort to something else.

    Plugin Author xnau webdesign

    (@xnau)

    Does the page refresh when you click the “sort” button?

    Thread Starter trman

    (@trman)

    Yes it does refresh.

    Plugin Author xnau webdesign

    (@xnau)

    OK, if you can provide a link, I’ll take a look at it

    Thread Starter trman

    (@trman)

    Thank you I have sent you an email.

    Thread Starter trman

    (@trman)

    Thanks Roland your email fixed my problem! I will post it here so others may see the solution to my sorting problem:

    —begin Roland email—-
    I see what’s going on… your results are on a different page and there is no search form on that page. The shortcode on the results page needs to have the search form so the search terms can be part of the form…that way, when the page is refreshed, the search terms will be used on the new sort. Also, you may want to use the “suppress” attribute to keep it from showing all the results if the page is visited directly.

    [pdb_list search=true sort=true suppress=true]

    If you really want the search form to be hidden. you can try doing that with CSS or use a custom template that has the search fields as hidden inputs.
    —end Roland email———

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sorting problem’ is closed to new replies.