Place the shortcode in a Page or Post content to show your pet listing on a page. The lists consists of all pets’ name, description and pictures uploaded to Petfinder. Perhaps you want to take away/replace special characters that aren’t displaying correctly, or need to add a paragraph to the tip of all pets’ descriptions?
Fixed class reference to accurately save choices when newly installed, and eliminated extra shut div on pets with no description. Added Setting to remove “View full description »” hyperlink after each Pet’s description. You might do this when you’ve asked Petfinder to return your pets’ full description. I’ve heard Petfinder will return the complete pet description as an alternative of a brief excerpt in API v2.zero should you ask.
Each record merchandise has a special CSS class so you possibly can cover any you do not want to show. If you have over one hundred pets, or wish to break up your pets into a number of pages, you’ll be able to put the shortcode on a number of pages, each with a different page quantity. You’ll must add a link to every page somewhere so your customers can navigate between pages. Sorting only kinds the pets on the page, and not all pets. Petfinder does not provide a method to sort all by name after which return with paging. It can solely sort by latest and distance in the preliminary name. Petfinder API v2.0 added ability to filter before retrieving outcomes so you possibly can set the depend to the real number you wish to list on the page now.
Every Pet Deserves A Security Web
The filter name is petf_replace_description and it acts on all pets’ descriptions. css_class – Set your individual class name on div containing all pets. This permits you to control the types individually on totally different pages. include_info – Value ought to be set to “sure” or “no”; default is “sure”. If set to “sure”, Breeds, Spayed/Neutered, Up-to-date with routine pictures, Housebroken, child safe, cat protected, canine safe, particular wants are displayed in list beneath photo thumbnails.
You should enter your shelter ID, Petfinder v2.0 API key and secret on the Petfinder Listings’ settings page for this shortcode to work. You can also have to edit your Petfinder settings to allow sharing your knowledge with third parties.