| 开发者 | laudvi |
|---|---|
| 更新时间 | 2026年12月2日 08:36 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[laudvi_reviews] shortcode, to any page.
You can create several widgets in Laudvi, for example a carousel for your homepage and a grid for your reviews page, each with its own settings and key. Give a block its widget key (in the block settings), or use [laudvi_reviews key="YOUR-WIDGET-KEY"]; blocks and shortcodes without a key show the widget whose key is saved in Settings → Laudvi Reviews.
assets/laudvi-reviews.js, included in the plugin, readable and not minified).assets/laudvi-reviews.js is built, not minified, from the TypeScript source included in the plugin's src/ folder (the Laudvi Review Showcase renderer, GPLv2 or later). To rebuild it byte for byte: npm install --no-save esbuild@0.28.2, then node src/build.mjs.
Optional "Powered by Laudvi.com" link
The widget can show a small "Powered by Laudvi.com" link under the reviews. It is off by default, including on sites that installed an earlier version, and the widget works the same without it. To show it, tick "Show a “Powered by Laudvi.com” link under the reviews" in Settings → Laudvi Reviews. When shown, it is a normal link to www.laudvi.com marked rel="nofollow sponsored noopener", opening in a new tab. When it is off, the widget contains no Laudvi link or credit of any kind.
Shortcode
[laudvi_reviews] uses your Laudvi defaults. Optional attributes:
layout: badge, carousel, grid or rating (a compact line with your Google rating, stars and review count).count: 3 to 12 reviews.style (rating layout): compact (default) or spotlight (a navy card).link (rating layout): reviews (default: your reviews on Google) or write (the page to leave a Google review).panel (a floating rating badge): reviews lets visitors tap the badge to see your 3 newest Google reviews, with links to all your reviews on Google and your contact button if you set one.float (badge and rating layouts): right or left keeps it in that bottom corner of the screen as visitors scroll. Visitors can hide it with its × button for the page they are on; nothing is stored.[laudvi_reviews layout="grid" count="6"], [laudvi_reviews layout="rating" style="spotlight" float="right"]
[laudvi_reviews] shortcode, to a page.Yes. The plugin displays the Review Showcase published from your Laudvi account; it doesn't collect or store reviews itself.
No. It is optional and off by default. Turn it on or off at any time in Settings → Laudvi Reviews.
It adds one deferred script from your own site, only on pages that show the widget. The reviews load in the visitor's browser, so your page cache is unaffected.
Its three settings (the widget key, the link choice and the engagement-counts choice). It creates no other data in WordPress.
panel="reviews", or the block's checkbox), with links to all your reviews on Google and your contact button if you set one in Laudvi.layout="rating"): your Google rating, stars and review count as one compact line or a spotlight card, linking to your reviews on Google or to the page to leave one.float="right" or "left"). Visitors can hide it for the page they are on; nothing is stored.[laudvi_reviews key="…"]). Without one, the key in Settings is used, as before.