[rep_reviews]

You can use our Reviews Shortcode to display listings from your Malcolm account directly on any page or post.


Product


Shortcode Attributes

There are a number of shortcode attributes available which you can use to customize the output.

GENERAL LAYOUT

  1. display – Defines the display between Grid, and Carousel view.
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Display.
    • Options: grid, carousel, tab.
  2. layout – Controls the layout of each review on the result.
    • Default: The default value is based on the selected value under Malcolm > Settings > Reviews > General > Layout.
    • Options: From 1 to 5. Specify one only.
      • 1 – Image above content
      • 2 – Image left content
      • 3 – Image right content
      • 4 – Image overlay content
      • 5 – Content only
  3. columns – Defines how many reviews are displayed per row. Use in conjunction with layout 1, 4, and 5. This attribute is ignored on layout 2 and 3.
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Columns.
    • Options: From 1 to 5. Specify one only.
  4. max_chars – Maximum number of characters to display in the review description.
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Max Characters.
    • Options: Integer values. Recommended value is around 150.
  5. max_posts – The maximum number of reviews to display.
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Max Posts.
    • Options: Integer values.

GRID LAYOUT

  1. posts_per_page – Toggles pagination on. Use in conjunction with max_posts.
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Posts Per Page.
    • Options: Integer values.

CAROUSEL LAYOUT

  1. autoplay – Enable or disable carousel autoplay.
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Autoplay.
    • Options: on or off.
  2. infinite_carousel – Enable or disable infinite carousel, allowing the carousel to slide endlessly
    • Default: The default value is based on the selected value under Malcolm > Settings > General > General > Infinite Carousel.
    • Options: on or off.

SECTION

  1. header_title – Displays section title on the section header above the section body.
  2. header_sub_title – Displays section sub title on the section header above the section body.
  3. section_background_image – Adds a background image to section. Use image URL as value.
  4. section_background_color – Adds a background color to the section. Use valid CSS color value.
  5. section_font_color – Defines the font color used on the section. Use valid CSS color value.
  6. section_width – Defines the width of the section.
    • Default: default (which is a max width of 1140px).
    • Options: default, small, medium, large or full. Specify one only.
  7. view_more_link_text – Text to display on the section view more button. This is not applicable when archive is on
    • Default: "View more".
  8. view_more_link – URL to view more reviews.
  9. classes – Adds an HTML class to the section wrapper so you can modify the specific output with custom CSS.

FILTER

  1. archive – If set, the shortcode will allow filtering the results based on the user search.
    • Default: off.
    • Options: on or off.
  2. search_filter – Display search filter form to search through the reviews. Setting this on will set archive attribute to on regardless of the value set on that attribute.
    • Default: off.
    • Options: on or off.
  3. agency_id – Filters listings by agency ID.
  4. agent_id – Filters listings by agent ID.
  5. source – Filters reviews based on the source
  6. orderby – Specifies the order in which reviews are displayed.
    • Default: The default value is based on the selected value under Malcolm > Settings > Reviews > General > Order By.
    • Options: date, menu_order, rand. Specify one only.
  7. order – Determines whether the reviews are listed in ascending or descending order.
    • Default: The default value is based on the selected value under Malcolm > Settings > Reviews > General > Order.
    • Options: asc, desc. Specify one only.
  8. featured – Filters reviews based on their “featured” status.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  9. categories – Set the post category.
  10. exclude_categories – An array of excluded categories.
  11. tags – Set the post tags.

CONTENT

  1. content_to_display – Specifies which details of the review should be displayed.
    • Default: The default value is based on the selected value under Malcolm > Settings > Reviews > Display > Featured Details.
    • Options: address, profile, description, reviewer, rating, title. Use commas , to separate values.

Example Usage

[rep_reviews 
    display="grid" 
    layout="2" 
    search_filter="on" 
    header_title="Customer Reviews" 
    header_sub_title="What Our Clients Say" 
    view_more_link_text="View All Reviews" 
    view_more_link="/reviews" 
    content_to_display="title,description,reviewer,rating"]

This example will display customer reviews in a grid layout with an image positioned to the left of the content, along with a search filter, section title, and a ‘View All Reviews’ button
Featured Reviews: Reviews can be filtered to only show featured reviews by using the featured attribute.
Pagination: Pagination is added automatically on grid display if there are more results than can be displayed at once.
Multi-Column or Archive Layout: The shortcode supports multi-column or archive layouts, if archive is set to on. The layout depends on the selected value on Malcolm > Settings > Reviews > Archive Page > Archive Page Layout.