內容簡介
使用此外掛程式,在您的網站上顯示紐約時報的暢銷書排行榜。您還可以選擇在每本書的鏈接中包含您本地圖書館目錄的連結。
此外掛程式使用易於使用的用戶界面,能夠在不重新載入頁面的情況下快速更新和在原地更新列表。
使用方法
WordPress 5.0
使用「Bestseller Lists from NYT」區塊。您可以可選地指定初始化顯示的列表。
WordPress 4.x
在您的頁面中使用 [nyt-bestseller-listings] 短碼嵌入列表。您可選地使用 initial-list 屬性以列表 slug 作為屬性值來指定初始顯示的列表。首先將短碼放置在頁面上,然後變更列表並查看頁面。當列表變更時,頁面 URL 也會變更,您可以在瀏覽器的 URL 列中查看 nyt-list=SLUG-HERE 以獲取列表 slug。例如,要將列表放置在頁面上並將初始列表設置為兒童繪本,您可以使用:[nyt-bestseller-listings initial-list="picture-books"]
要隱藏圖像,請使用定制器中的「額外 CSS」區域添加以下 CSS:.nyt-bestseller-listings-img { display: none; }。
外掛標籤
開發者團隊
② 後台搜尋「Bestseller Lists from the New York Times」→ 直接安裝(推薦)
原文外掛簡介
Use this plugin to display all the bestseller lists from New York Times on your own site. Optionally include links from your own local library catalog from each book.
The plugin uses an easy-to-use user-interface which updates quickly and “in-place” when changing lists without reloading the rest of the page.
Use
WordPress 5.0
Use the Bestseller Lists from NYT block. You can optionally specify which list is initially displayed.
WordPress 4.x
Use the [nyt-bestseller-listings] shortcode to embed the lists in your page. You can optionally specify which list is initially displayed by using the initial-list attribute with the list slug as the attribute value. Get the list slug by first placing the shortcode in your page, then visiting the page and changing lists. The page url will change as the list changes, and the list slug can be seen by looking for nyt-list=SLUG-HERE in your browser’s url bar. So for example, to place the lists on a page and set the initial list to be children’s picture books, you would use: [nyt-bestseller-listings initial-list="picture-books"]
To hide the images, add the following bit of css to your theme using the Additional CSS section in the Customizer: .nyt-bestseller-listings-img { display: none; }.
