Title: [Plugin: Petfinder Listings] search function?
Last modified: August 20, 2016

---

# [Plugin: Petfinder Listings] search function?

 *  Resolved [Leslie](https://wordpress.org/support/users/lesliev2001gmailcom/)
 * (@lesliev2001gmailcom)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-petfinder-listings-search-function/)
 * Hi,
 * I run a website for a [large pet rescue](http://www.angelsrescue.org/adoptables.asp).
   We currently have 383 cats and dogs listed on Petfinder. We’re using the plain
   Petfinder widget on our site right now, but I don’t like how it looks. I’m currently
   working on a total site redesign, so I’m thankful I found your plugin!
 * Seeing as how we have so many animals, the search capabilities are important 
   for our site. Is there a way to search by cat/dog, age, etc? And something that
   the Petfinder widget doesn’t have – name?
 * Thank you so much!
    Leslie
 * [http://wordpress.org/extend/plugins/petfinder-listings/](http://wordpress.org/extend/plugins/petfinder-listings/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [bridgetwes](https://wordpress.org/support/users/bridgetwes/)
 * (@bridgetwes)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-petfinder-listings-search-function/#post-3018743)
 * Hi Leslie,
 * Unfortunately the Petfinder API doesn’t have a method to filter results per shelter.
   There are only two methods that limit the search to a shelter – pet.getRandom
   and shelter.getPets. The random method only returns one result and the getPets
   method doesn’t allow for any filtering. I fake the filtering by retrieving all
   pets for a shelter and filtering through all the results to limit the data returned
   by animal and breed. For a shelter with 383 pets, this will probably be pretty
   slow. You can look through the Petfinder API methods available here: [http://www.petfinder.com/developers/api-docs#methods](http://www.petfinder.com/developers/api-docs#methods)
 * I wish the pet.find method had a shelter argument. This method would allow you
   to search by animal, breed, size, sex and age, but it returns pets listed by 
   all shelters that match your arguments, which isn’t what most shelters/rescues
   want to do on their site.
 * I am going contact petfinder to see if they could add a method which will allow
   developers to filter shelter results. I’ll post back here if they answer.
 * You can limit the search by animal with my plugin, but I don’t know how fast 
   it will be since you have so many animals listed. The shortcode would be:
    [shelter_list
   animal=”cat” count=”400″] You’ll need to add the count because by default it 
   only returns 75 results. This will probably be pretty slow though and the page
   would be really long. I have not included paging in my plugin yet, but it is 
   something I can add when I have time.
 * Bridget

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Petfinder Listings] search function?’ is closed to new replies.

 * ![](https://ps.w.org/petfinder-listings/assets/icon.svg?rev=2204930)
 * [List Petfinder Pets](https://wordpress.org/plugins/petfinder-listings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/petfinder-listings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/petfinder-listings/)
 * [Active Topics](https://wordpress.org/support/plugin/petfinder-listings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/petfinder-listings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/petfinder-listings/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bridgetwes](https://wordpress.org/support/users/bridgetwes/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-petfinder-listings-search-function/#post-3018743)
 * Status: resolved