| 开发者 | rootdesign |
|---|---|
| 更新时间 | 2026年11月3日 18:14 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
rtd_needs_assets filter for custom template integrations.[rtd_testimonial_average].[rtd_testimonial_form].heading, button, category, show_company, show_video, show_photo and class.Review and AggregateRating markup. Set the reviewed organisation name and URL under Testimonials → Settings → Advanced. The schema includes the reviewer name, review body, rating, date and the average rating across the rendered testimonials.
Security and privacy
WP_Query; admin queries use WordPress APIs and prepared SQL where needed.testimonial post type, taxonomy and meta keys are unchanged from earlier versions.[rtd_testimonial], [rtd_testimonial_average], [rtd_testimonial_count] and [rtd_testimonial_form]. The woodebee_* names also work as aliases. Existing meta keys and the testimonial post type are unchanged, so upgrading does not require a data migration.
Where you can use it
[rtd_testimonial].[rtd_testimonial template="trust-grid"].[rtd_testimonial_average].[rtd_testimonial_count].[rtd_testimonial_form].<?php echo do_shortcode( '[rtd_testimonial]' ); ?>.[rtd_testimonial] uses the saved settings.
[rtd_testimonial template="trust-grid"] uses a saved template.
[rtd_testimonial layout="grid" columns="3" limit="6"] shows a three-column grid of six testimonials.
[rtd_testimonial layout="carousel" slides="3" category="clients" orderby="rand"] shows a three-up carousel of random testimonials from the "clients" category.
[rtd_testimonial rating_min="4" featured="only"] shows only featured testimonials rated four stars or more.
[rtd_testimonial video="only"] shows only testimonials that have a video.
[rtd_testimonial_form] shows the front-end review submission form.
[rtd_testimonial_form heading="Share your experience" category="clients"] shows the form with a custom heading and a preselected category.
All shortcode attributes
template, template_id, layout, columns, limit, orderby, order, category, tag, ids, rating_min, featured, video, heading, heading_tag, excerpt, theme, show_rating, show_avatar, show_quote, show_company, show_logo, show_socials, show_website, show_date, show_product, autoplay, delay, speed, loop, pause, arrows, dots, slides, slides_tablet, slides_mobile, gap, schema and class.
Explicit shortcode attributes always win over the template, so [rtd_testimonial template="trust-grid" limit="3"] shows three testimonials using the rest of the Trust Grid settings.
[rtd_testimonial] shortcode, a template shortcode, the block, or an Elementor widget.[rtd_testimonial_form] to a page. Submitted reviews are saved with Pending status for approval.Yes. The plugin ships scoped CSS under .rtd, so it inherits your theme's typography where possible and does not restyle the rest of the site. Theme and Elementor button styles are neutralised for the video poster and slider arrows, and section headings follow the surrounding page colour.
Yes. Use layout="carousel" with slides="2" or slides="3", or use the grid or masonry layouts with columns. Tablet and mobile slide counts are configurable separately.
Edit the testimonial, open Video testimonial, paste a YouTube or Vimeo URL, or use a media library MP4/WebM URL. Optionally add a poster image. The card shows a cover image with a play button; clicking it plays the video inline in the card, with no popup or lightbox. Use the Video Testimonials (Wbee) Elementor widget or [rtd_testimonial video="only"] to show only video testimonials.
Open Testimonials → Templates, click the template, change any setting and update it. Its shortcode keeps working and picks up the changes immediately. You can also duplicate a template to create a variation.
Templates are stored in the database. An update only creates defaults the site has never received; edited and deleted templates are left untouched. The current default settings match the Testimonials Demo page that ships with the plugin's development setup.
Yes. When Output Review schema is enabled, each rendered view adds JSON-LD Review and AggregateRating markup. Set the reviewed organisation name and URL under Testimonials → Settings → Advanced.
Yes. Open Testimonials → Settings → Display, enable Show floating average rating, choose a corner, set the pixel offsets and choose which pages should show it. You can also place the average inline with [rtd_testimonial_average].
Yes. Add [rtd_testimonial_form] to a page. Visitors can submit a name, e-mail, designation, company, website, rating, testimonial, video URL, photo, category and consent. New submissions are saved as Pending and the site admin receives an e-mail notification.
Yes. Use the Testimonials block or the Testimonials (Wbee) / Video Testimonials (Wbee) Elementor widgets. Both provide a template dropdown and custom settings, and the Elementor Style tab controls the card colours, radius and typography.
Yes. Add it under Testimonials → Settings → Advanced → Custom CSS. The CSS is loaded after the plugin styles. Do not include <style> tags.
Only if you enable Delete all data on uninstall under Testimonials → Settings → Advanced. Otherwise testimonials, settings, templates and taxonomy terms are retained.
Yes. All plugin strings use the rtd-client-testimonial text domain. The translation template is included at languages/rtd-client-testimonial.pot. WordPress.org language packs install compiled .mo files in wp-content/languages/plugins/.
No. Front-end assets are loaded only when a testimonial shortcode, block or Elementor widget is detected. If you render a testimonial from a custom PHP template, use the rtd_needs_assets filter to force the assets on that page.
template and template_id shortcode attributes.video="only|exclude" filter for video testimonials.[rtd_testimonial_form].rtd to rtd-client-testimonial to match the WordPress.org plugin slug.languages/rtd-client-testimonial.pot.load_plugin_textdomain() call; WordPress.org loads plugin translations automatically.assets/vendor/fontawesome/ and documented the Font Awesome and Swiper credits in the readme.languages/rtd-client-testimonial.pot from the plugin files only.rtd_ prefix for PHPCS, so Plugin Check no longer reports prefix warnings for the plugin's own files.