How to use our Reviews Shortcode

You can also use our reviews shortcode to display reviews from your REA account directly on any page or post.

If you are using the block editor, there is a shortcode block you can use to insert the shortcode. Alternatively, if you are using the classic editor, you simply paste the shortcode wherever you want your feed to display.

[rea_reviews]

Shortcode Attributes

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

  • type – defines if feed displays Sales or Leasing Reviews. Defaults to Sales. Use type=”leasing” to display Leasing Reviews.
  • agent_id – defines which agent data is displayed in the feed. Use REA agent id. Specify one only.
  • display – defines if feed displays as Grid or Carousel. Defaults to Grid. Options are grid or carousel. Specify one only.
  • max_words – maximum number of words to display in the description. Defaults to value set under plugin Settings -> General. Use -1 to show full description or 0 to hide description.
  • max_posts – the maximum number of posts to display in your feed. Defaults to value set under plugin Settings -> General.
  • columns – the number of columns to display. Use in conjunction with grid or carousel layout 2. Options are 1, 2, 3 or 4. Specify one only.
  • posts_per_page – toggles pagination on. Use in conjunction with max_posts. Defaults to value set under plugin Settings -> General.
  • agent_profile_location – defines the location of the agent profile within the feed. Use only if displaying single agent reviews. Not applicable to Leasing Reviews. Defaults to body which displays the agent profile above or on left side of the listing, depending on the layout selected. Options are default or card. Specify card as value to display the profile inside of each feed item.
  • section_background_image – adds a background image to the HTML wrapper for the feed. Use image URL.
  • section_background_color – adds a background color to the HTML wrapper for the feed. Use HEX code or RGBA value.
  • section_font_color – defines the font color of section header and section footer.
  • section_padding_top – Change the padding-top of the feed section. Use valid CSS value only.
  • section_padding_bottom – Change the padding-bottom of the feed section. Use valid CSS value only.
  • color_scheme – defines the theme color use on the feed items. Options are light, dark, and grey. Specify one only.
  • section_width – defines the width of the feed. Defaults to default which is a max width of 1140px. Options are default, small, medium, large or full. Specify one only.
  • header_title – displays header title text above the feed.
  • header_sub_title – displays header sub title text above the feed.
  • view_more_link – display a view more button. Specify the URL.
  • classes – adds an HTML wrapper class so you can modify the specific output with custom CSS.

Examples

Here are some examples of how our shortcode can be used to display Reviews.

Reviews Example 1

[rea_reviews agent_id="A001" header_title="Latest Reviews" header_sub_title="See what our customers have to say" max_posts="3" max_words="20"]

The shortcode above will display the latest 3 reviews from your RateMyAgent account linked to Agent Code A001. The header title text will display as Latest Reviews with sub title text See what our customers have to say. The first 20 words of the review description will be displayed followed by a read more link. As no layout has been specified, the default which is layout 1 is used.

Reviews Example 2

[rea_reviews agent_id="A001,A002,A003" layout="2" section_background_color="#f5f5f5" header_title="Latest Reviews" header_sub_title="See what our customers have to say" max_posts="12" max_words="20"]

The shortcode above will display the latest 12 reviews from your REA account linked to Agent IDs A001, A002 and A003. The background color for your feed will be #f5f5f5 which is a light grey. The header title text will display as Latest Reviews with sub title text See what our customers have to say. The first 20 words of the review description will be displayed followed by a read more link. The layout specified is our pre-built layout 2.