The World's Fastest and Most User-friendly SEO Content Management System | Building & Branding Custom Websites that Get Results
 

Site must have "Dynamic Templates" installed in the backend. 

In the backend go to Modules > Dynamic Templates.

Click "Add Dynamic Template".

Name the template "Testimonials Carousel"

Under Variables, click "Add Variable"

In the "Name" text box type "Reviews"

In the "Default Query" text box type:

App\Models\Review::query()
->where('approved', 1)
->inRandomOrder()
->limit(5)
->get()

In the "Template Section" Copy and paste the code below:

[[insert code here]]

Updated the page to save all changes.

Then click "Create Shortcode" button in the right column.

In the Name text field type "Default" or desired name. Leave the rest of the options as they are and click Save.

It will take you back to the previous page and you will now see the "Default" shortcode that was generated. Copy that shortcode and paste it in the page content where you want the carousel to display.

Adjust styles as need in the "Styles" section of that dynamic template using CSS"

Example of the testimonial carousel:

 

Building & Branding Websites that Get Results

The world's fastest and most SEO friendly website code.