WP Manifestindependent plugin directory
manifest / editor / custom-testimonial-block

Custom Testimonial Block

Custom Testimonial Block allows you to easily manage and display client testimonials in a beautiful carousel.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/hemantwpdev/custom-testimonial-block/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Example block scaffolded with Create Block tool.

Description

Custom Testimonial Block built for interview/demo purposes, allows you to easily manage and display client testimonials in a beautiful carousel. Features include:

Custom post type for Testimonials. Custom meta box for rating (1–5 stars) and optional client URL. Testimonial categories (taxonomy) for filtering. Gutenberg block editor restricted to Paragraph block for content simplicity. Shortcode [ctb_display_testimonials] to display testimonials in a Slick Slider carousel. Options for avatars, client URL linking, autoplay, and category filtering. Created a new custom testimonial block to display a testimonials in carousel.

Shortcode Usage

[ctb_display_testimonials count="3" show_avatar="true" show_url="true" category="" autoplay="true" autoplay_speed="3000"]

Shortcode Attributes:

  • count: (int) - Number of testimonials to display. Default: 3.
  • show_avatar: (true/false) – Show client avatar. Default: true.
  • show_url: (true/false) – Link avatar to client website. Default: true.
  • category: (string) – Filter testimonials by category slug. Default: ''.
  • autoplay: (true/false) – Enable carousel autoplay. Default: true.
  • autoplay_speed: (int) – Autoplay interval in milliseconds. Default: 3000.

Here’s a short video to help you understand better:

Video URL: https://www.loom.com/share/bf400c07717846dd88a0c7dc8b246b10?sid=a840f547-72cf-4919-862b-4d5f2622ea79

Internationalization:

  • Fully translation-ready using WordPress internationalization functions.
  • Includes translation files for Afrikaans (af) language.

Installation

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/custom-testimonial-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

Frequently Asked Questions

= Can I display testimonials from a specific category?

Yes! Use the category attribute in the shortcode and provide the slug of the testimonial category: [ctb_display_testimonials category="happy-clients"]

How do I show client avatars?

Set show_avatar="true" in the shortcode. Make sure the testimonial has a featured image.

Can I link avatars to client websites?

Yes! Use show_url="true" in the shortcode and fill in the client URL in the testimonial meta box.

How do I change the number of testimonials displayed?

Use the count attribute in the shortcode: [ctb_display_testimonials count="5"]

Screenshots

  1. Testimonial Add New screen with meta box for rating and client URL. SS: https://prnt.sc/vBM81Saix_JH
  2. Frontend testimonial carousel displaying client avatars, names, content, and star ratings. : https://prnt.sc/68f3UM891Fjr
  3. New testimonial block with available settings. SS: https://prnt.sc/CJqG5BVyx5y0

Changelog

0.1.0

  • Release