內容簡介
這個外掛提供了兩個簡單的方法,可以透過 iframe 顯示收容所在 Adopt-a-Pet.com 上現有可領養的寵物列表。
第一種方式是透過短碼 pet_adoption_listings,可將其包含在任何文章或頁面內容中。使用時,它會顯示收容所的所有可領養寵物列表,其中必須設置 shelter_id 屬性 (從 Adopt-a-Pet.com 獲取),但您也可以指定 iframe 的寬度和高度。
第二種方式是透過小工具在側邊欄等範圍中顯示現有可領養的寵物列表。您可以指定要顯示的寵物種類(預設為全部)和列表的高度,可以在外掛設定中指定收容所的 ID (必填,從 Adopt-a-Pet.com 獲取)。
所有寵物詳細信息的連結將在 Adopt-a-Pet.com 網站的新瀏覽器窗口或標籤中打開。
請注意,該外掛透過 iframe 載入了第三方網站的內容,因此可能會引入 cookie、追踪代碼等,除了 WordPress 網站上已存在的代碼以外。此外掛和小工具與 Adopt-a-Pet.com 或其夥伴無任何聯繫或認可。
想要幫助改進這個外掛嗎?歡迎提交拉取請求。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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.
