Shortcodes

Strong Testimonials has 3 main shortcodes:

  1. Testimonial View Shortcode
[testimonial_view]

Each view has a unique shortcode like [testimonial_ view id=”1″]. After you create a view you will see its shortcode next to the title.

This is the shortcode you need to paste in your page when you want to display testimonials or collect them through the form.

To see exactly how to use it please click here.

2. Testimonial Count Shortcode

[testimonial_count]

Use the shortcode above to count your testimonials. It will display on your page the number of testimonials you have, for example: 29.

Example: Read some of our 29 testimonials!

Read some of our [testimonial_count] testimonials!

To count for a specific category, add the category attribute with the category slug.

Example: Here’s what 5 local clients say.

 Here's what [testimonial_count category="wedding"] local clients say.

As you can see, instead of showing ’29’ (the total number), it only displays ‘5’ – how many testimonials are in the ‘wedding’ category.

Explained more here.

3. Testimonial Average Rating Shortcode

[testimonial_average_rating]

To display the average rating. This works for a single rating field. It does not support multiple rating fields yet.

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)

You must use the closing slash / if using the shortcode with content elsewhere on your page.


You can customize the shortcode using content tags:

{title}
{stars}
{summary}

Shortcode: [testimonial_average_rating]{title} {stars} {summary}[/testimonial_average_rating]

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)

Alternate content tags.

{title2}
{summary2}

Shortcode: [testimonial_average_rating]{title2} {stars} {summary2}[/testimonial_average_rating]

How it looks:

Average of 8 Ratings: 4.3 stars

Insert tags into your custom content.

Shortcode: [testimonial_average_rating]{stars} Our average rating is <b>{summary2}</b>[/testimonial_average_rating]

How it looks:

Our average rating is 4.3 stars

Other tags:

{stars}

Shortcode: [testimonial_average_rating]{stars}[/testimonial_average_rating]

How it looks:


{average}

Shortcode: [testimonial_average_rating]{average}[/testimonial_average_rating]

How it looks:

4.3

decimals – If you need to display multiple decimals for average rating you have to set a number to decimal.

Shortcode: [testimonial_average_rating decimals="number" /]

How it looks:

Average Rating: stars (based on 8 ratings)

{count}

Shortcode: [testimonial_average_rating]{count}[/testimonial_average_rating]

How it looks:

8

field – If using multiple rating fields, you can specify the specific field you need. If using multiple rating fields, you can use “all” to use all the rating fields.

Shortcode: [testimonial_average_rating field="rating" /]

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)
Shortcode: [testimonial_average_rating field="all" /]

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)

block

Shortcode: [testimonial_average_rating block /]

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)

centered

Shortcode: [testimonial_average_rating centered /]

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)

rounded – round the rating(ex.: from 4.3 -> 4 or 4.7->5)

Shortcode: [testimonial_average_rating rounded ]

How it looks:

Average Rating: 4 stars (based on 8 ratings)

block and centered

Shortcode: [testimonial_average_rating block centered /]

How it looks:

Average Rating: 4.3 stars (based on 8 ratings)

Was this article helpful to you? Yes 3 No 39

Still stuck? We’re here to help.

Send us a message and we’ll get back to you as soon as we can.