Title: Sorting problem
Last modified: August 31, 2016

---

# Sorting problem

 *  Resolved [trman](https://wordpress.org/support/users/trman/)
 * (@trman)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/)
 * 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/](https://wordpress.org/plugins/participants-database/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7188984)
 * Try turning off “AJAX Searches” in the settings under the advanced tab.
 *  Thread Starter [trman](https://wordpress.org/support/users/trman/)
 * (@trman)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7188999)
 * 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](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7189047)
 * Does the page refresh when you click the “sort” button?
 *  Thread Starter [trman](https://wordpress.org/support/users/trman/)
 * (@trman)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7189051)
 * Yes it does refresh.
 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7189060)
 * OK, if you can provide a link, I’ll take a look at it
 *  Thread Starter [trman](https://wordpress.org/support/users/trman/)
 * (@trman)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7189070)
 * Thank you I have sent you an email.
 *  Thread Starter [trman](https://wordpress.org/support/users/trman/)
 * (@trman)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7189092)
 * 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.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [sort](https://wordpress.org/support/topic-tag/sort/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 7 replies
 * 2 participants
 * Last reply from: [trman](https://wordpress.org/support/users/trman/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/sorting-problem-11/#post-7189092)
 * Status: resolved