Shortcodes

Each review has Target post. It is like an owner of a review. Reviews had been written on this post.

Some shortcodes has post parameter. When it is skipped or empty – it will set current post/page as target post. [webrr-reviews] has posts parameter to display all reviews from different posts/pages.

(bool) type of parameter means it can get 0 or 1 as value. Please note, that any WordPress string parameters should be wrapped in quotes "".

[webrr-reviews]

This shortcode without parameters renders all reviews. To get it render reviews of current post use target_post=1 parameter.

Parameter Default
target_post Place 1 to get reviews of current post (bool) 0
target_post_type Get all reviews of all posts of this type
posts Comma separated IDs of target posts to display reviews
perpage Number of reviews per page 10
onepage Place all reviews without paginator (bool) 0
reviews_order_by Order review by "post_date", "rating", "votes", "rand" "post_date"
reviews_order "ASC" or "DESC" order "DESC"
hide_order Hide ordering button (bool) 0
hide_paginator Hide paginator buttons or “Show More Reviews” button (bool) 0
hide_images Hide images from reviews (bool) 0
with_images Get only reviews those have images (bool) 0
reviews_view_type Display reviews in "list" or "grid" view "list"
reviews_view_grid_columns Number of columns for the Grid view 2, 3 or 4 2
reviews_view_grid_masonry Enable masonry for the Grid view (bool) 0
terms Display reviews by certain terms. Used only with ‘tax’ parameter
tax Used only with ‘terms’ parameter
author Show reviews by certain author ID

[webrr-reviews reviews_view_type="grid" reviews_view_grid_columns=3 reviews_view_grid_masonry=1]

2.6

Simply the best

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]
3.7

Beanie Review

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]
4.3

My favourite

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]
4.4

Thanksgiving review

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]
4.4

Florist days

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]
4.8

Good job

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]
4.8

Florist review

Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem [...]

[webrr-slider]

Parameter Default
slides Number of slides to display 5
captions Show captions on each slide (bool) 1
pager Show thumbnails slides (bool) 1
width Leave empty to fit all possible width (in pixels)
height Set fixed height of the slider (in pixels). Otherwise it will adapt height for each slide.
crop Do crop images (bool) 1
slide_width Set fixed width of main slide (in pixels) 0
max_slides Show multiple slides on main slide area, max_slides parameter required 0
order_by_rand Get random slides (bool) 0
auto_slides Enable auto rotation (bool) 0
auto_slides_delay Delay in rotation (in milliseconds) 3000
+ [webrr-reviews] parameters Slider accepts additional target_post, posts, reviews_order_by, reviews_order, terms, tax, author parameters

[webrr-slider order_by_rand=1]

Good job
Good job 4.8
Florist review
Florist review 4.8
Simply the best
Simply the best 2.6
Beanie Review
Beanie Review 3.7
My favourite
My favourite 4.3

Place post shortcodes at the target post

[webrr-post-rating]

Displays average stars rating of a post.

Parameter Default
post Target post ID When empty it displays rating stars of current post

[webrr-add-review-button]

Parameter Default
post Target post ID When empty it adds a review of current post
text Text of the button "Add Review"

[webrr-post-reviews-counter]

Displays the number of reviews has a post.

Parameter Default
post Target post ID When empty it counts reviews of current post

7 Reviews

[webrr-post-ratings-overall]

Displays summary information about a post.

Parameter Default
post Target post ID When empty it counts reviews of current post
5 Stars
 - 2 (29%)
4 Stars
 - 4 (57%)
3 Stars
 - 1 (14%)
2 Stars
 - 0 (0%)
1 Star
 - 0 (0%)
4.1
Usability 4.1
Comfort 3.7
Price 4.1
Service 4.1
Size 5.0
Distance 3.7

Place review shortcodes at the Single Review Page

[webrr-review-header]

Parameter Default
review Review ID When empty it displays header of current review

Review for Sample Reviews Page

[webrr-review-title]

Parameter Default
review Review ID When empty it displays title of current review
My favourite

[webrr-review-content]

Parameter Default
review Review ID When empty it displays content of current review
Nulla gravida commodo est, sed euismod augue dictum ac. Maecenas non libero ante. Suspendisse non tellus nisl, vitae sodales neque. Pellentesque ornare auctor sem et pellentesque. Integer vitae lectus in ipsum auctor accumsan. Aenean sapien tortor, laoreet sed venenatis quis, fermentum vel justo.'rnrnPraesent condimentum, elit et lacinia posuere, purus neque pretium massa, in elementum purus lacus sed urna. Donec varius eros sed sapien pellentesque laoreet venenatis nisi consequat.

[webrr-review-rating]

Parameter Default
review Review ID When empty it displays ratings stars of current review

[webrr-review-gallery]

Parameter Default
review Review ID When empty it displays images gallery of current review

[webrr-review-ratings-overall]

Parameter Default
review Review ID When empty it displays ratings bars of current review
Usability 5.0
Comfort 5.0
Price 5.0
Service 5.0
Size 5.0
Distance 1.0

[webrr-review-votes]

Parameter Default
review Review ID When empty it displays votes buttons of current review
Helpful review? 6 1

[webrr-review-comments]

Parameter Default
review Review ID When empty it displays comments section of current review
0 Comments

Leave a comment

more
Allowed HTML tags and attributes: <a href="" title=""> <blockquote> <code> <em> <strong>