
內容簡介
此外掛已經失效
Leafly 已經移除他們的公開 API,因此此外掛目前無法使用。如果他們決定重新啟用 API,我會更新此外掛。
在此期間,請務必查看 WP Dispensary,這是一個完整的 WordPress 大麻菜單解決方案。
原始細節
透過小工具或短代碼,輕鬆在網站上顯示 Leafly 網站上的大麻店評論。
此外掛利用 Leafly API 從 Leafly 網站取回您的大麻店評論,並將其保存在快取檔案中,透過短代碼顯示在您的網站上,您可以將短代碼放在頁面、文章或小工具中,並放置在側邊列。
您可以從Leafly 開發人員網站取得自己的 Leafly API 應用程式 ID 和 KEY。
小工具選項
您可以透過管理後台的 外觀> 小工具 選項,將 Leafly 評論小工具拖曳到網站上的任何小工具區域上。您可以填寫選項,以選擇在小工具中顯示的內容。
短代碼選項
以下是基本的短代碼:
[leaflyreviews slug="denver-relief"]
您需要添加您的 slug,就像小工具選項那樣。短代碼將預設顯示 5 個評論,並且會顯示小工具中給定的所有選項(頭像、星級評分、詳細評分、推薦、再次購物和評論)。
如果您想從顯示一些選項中刪除,您可以將選項添加到短代碼,值為「no」,像這樣:
[leaflyreviews slug="denver-relief" limit="5" avatar="no" stars="no" ratings="no" recommend="no" shopagain="no" comments="no"]
外掛標籤
開發者團隊
② 後台搜尋「Leafly Reviews for WordPress」→ 直接安裝(推薦)
原文外掛簡介
THIS PLUGIN NO LONGER WORKS
Leafly removed their public API so this plugin does not currently work. If/when they decide to get their act together and get the API back in action, I’ll update this plugin.
Until then, make sure you check out WP Dispensary, the complete marijuana menu solution for WordPress.
Original Details
Easily display your dispensary reviews from Leafly on your own site with a widget or shortcode.
This plugin utilizes the Leafly API to pull your dispensaries reviews from the Leafly website and saves them in a cache file to display on your own website through the use of a shortcode, which is placed on a page or post, or a widget which is placed in your sidebar.
You can get your own Leafly API app ID and KEY from the Leafly Developer website.
Widget Option
You can drag and drop the Leafly Reviews widget to any widgetized area on your website, through the Appearance > Widgets section of the admin dashboard. There are options you can fill out to choose what is actually displayed in the widget.
Shortcode Option
Here is the basic shortcode:
[leaflyreviews slug="denver-relief"]
You will need to add in your slug, just like the widget options. The shortcode will default to showing 5 reviews, and all of the options given in the widget (avatar, star rating, detailed rating, recommendation, shop again and comments.
If you’d like to remove some of these options from showing, you can add the option to the shortcode with the value of no, like this:
[leaflyreviews slug="denver-relief" limit="5" avatar="no" stars="no" ratings="no" recommend="no" shopagain="no" comments="no"]
