1. Home
  2. ReHub Theme
  3. Reviews, product review types, user reviews
  4. List of user reviews shortcode

List of user reviews shortcode

You can also show list of user’s reviews from all posts on one page. Or, maybe you want to show best reviewed comments, most helpful, reviews from one post, etc. It works also with woocommerce products.

Basic shortcode for this is

[rh_latest_comments]

Shortcode has several parameters.

number – will show definite number of reviews (default is 5)

user_id – set user ID to show only reviews from this user

ids – add list of comment IDs with comma to show only these reviews (no space between comma and id)

postids –  add list of post IDs with comma to show only reviews from these posts (no space between comma and id)

post_type – set post type (default is post, if you need woocommerce reviews – use “product)

only_review – set this as 1 if you want to get only reviews (default logic will show also all comments even without reviews)

best – set as 1 if you want to show best reviewed comments. Set as “helpful” if you want to show most helpful reviews (helpful counter must be enabled in theme option – review option)

img_height and img_width – will change size of post image. Default is 50. For full width pages, you can set more big images.

offset – offset for query. Use this when you want to show comments in several columns. So, for first column set number 5 and no offset, for second column, set offset 5, etc

Was this article helpful to you? Yes No 1

How can we help?