Title: Pet Adoption Listings
Author: Chris Hardie
Published: <strong>2015 年 2 月 1 日</strong>
Last modified: 2024 年 8 月 17 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/pet-adoption-listings/assets/icon-256x256.png?rev=3137143)

# Pet Adoption Listings

 作者：[Chris Hardie](https://profiles.wordpress.org/chrishardie/)

[下载](https://downloads.wordpress.org/plugin/pet-adoption-listings.zip)

 * [详情](https://cn.wordpress.org/plugins/pet-adoption-listings/#description)
 * [评价](https://cn.wordpress.org/plugins/pet-adoption-listings/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pet-adoption-listings/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pet-adoption-listings/#developers)

 [支持](https://wordpress.org/support/plugin/pet-adoption-listings/)

## 描述

This plugin provides two easy ways to display listings of adoptable pets from a 
shelter’s profile at Adopt-a-Pet.com via iframe.

The first way is with a shortcode `pet_adoption_listings` that can be included in
any post or page content. When used it will show the shelter’s available pets from
their Adopt-a-Pet.com profile. The only required attribute is `shelter_id` (obtained
from Adopt-a-Pet.com) but you can also specify the iframe width and height.

The second way is with a widget that can display available pets in your sidebar 
or wherever else widgets are in your theme. You can specify the Shelter’s ID (required,
obtained from Adopt-a-Pet.com), the types of pets to show (defaults to All), and
the height of the listing.

All pet detail links will open in a new browser window or tab on the Adopt-a-Pet.
com website.

Note that the plugin loads content from a third-party site via iframe, and so may
introduce cookies, tracking codes, etc. in addition to those present on your WordPress
site. This plugin and widget is in no way affiliated with or endorsed by Adopt-a-
Pet.com or its partners.

Want to help make this plugin better? [Pull requests are welcome](https://github.com/ChrisHardie/pet-adoption-listings).

## 屏幕截图

[⌊The shortcode definition in the post editor⌉⌊The shortcode definition in the post
editor⌉[

The shortcode definition in the post editor

[⌊The shortcode front-end display⌉⌊The shortcode front-end display⌉[

The shortcode front-end display

[⌊The widget configuration options⌉⌊The widget configuration options⌉[

The widget configuration options

[⌊The widget front-end display⌉⌊The widget front-end display⌉[

The widget front-end display

## 安装

 1. Upload the `pet-adoption-listings` folder to the `/wp-content/plugins/` directory
 2. Activate the Pet Adoption Listings plugin through the `Plugins` menu in the WordPress
    dashboard
 3. Add the shortcode to a post, and define the `shortcode_id` attribute, and optionally`
    iframe_width` and `iframe_height`
 4. Alternatively, add the widget to an available widget area and configure the options

## 评价

![](https://secure.gravatar.com/avatar/c4dac45a9928bde37efa579ec2d3389b12a31584504e335de28c3e51270d0d98?
s=60&d=retro&r=g)

### 󠀁[Meh. Just creates an iFrame, no real integration…](https://wordpress.org/support/topic/meh-just-creates-an-iframe-no-real-integration/)󠁿

 [triplemoons](https://profiles.wordpress.org/triplemoons/) 2017 年 2 月 27 日 2
回复

Meh. Just creates an iFrame which can be done without the use of a plugin. Offers
no real integration…

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/)

## 贡献者及开发者

「Pet Adoption Listings」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Chris Hardie ](https://profiles.wordpress.org/chrishardie/)

[帮助将「Pet Adoption Listings」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pet-adoption-listings)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pet-adoption-listings/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/pet-adoption-listings/)，或通过[RSS](https://plugins.trac.wordpress.org/log/pet-adoption-listings/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pet-adoption-listings/)。

## 更新日志

#### 1.2

 * Improvement: minor code formatting and cleanup
 * Improvement: use SSL version of Adopt-a-Pet.com site in optional credit link
 * Tested against WordPress 4.9

#### 1.1

 * Fix widget registration to work with newer WordPress versions
 * Add additional escaping
 * Miscellaneous code cleanup

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**2 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **6.6.10**
 *  语言
 * [English (US)](https://wordpress.org/plugins/pet-adoption-listings/)
 * 标签
 * [adoptable pets](https://cn.wordpress.org/plugins/tags/adoptable-pets/)[adoption](https://cn.wordpress.org/plugins/tags/adoption/)
   [animals](https://cn.wordpress.org/plugins/tags/animals/)[pets](https://cn.wordpress.org/plugins/tags/pets/)
 *  [高级视图](https://cn.wordpress.org/plugins/pet-adoption-listings/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pet-adoption-listings/reviews/)

## 贡献者

 *   [ Chris Hardie ](https://profiles.wordpress.org/chrishardie/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pet-adoption-listings/)