How to use our Agents Shortcode
Our agents shortcode is available to those who have purchased our Agency Pro plan and can be used to display agents from your RateMyAgent 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.
There are a number of shortcode attributes available which you can use to customise the output.
display– defines if feed displays as Grid, Carousel or Map view. Defaults to Grid. Options are grid, carousel or map. Specify one only.
layout– defines which one of our pre-built layouts is used. Defaults to 1. Used in conjunction with
display. Options are 1 or 2. 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.
order– Defines the order of the agents. Defaults to default. Options are default or alphabetical. Specify one only.
agent_stats– displays the agent statistics. Defaults to show. Specify hide to hide..
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.
Here are some examples of how our shortcode can be used to display Properties.
Agents Shortcode Example 1
[rma_agents section_background_color="#f5f5f5" header_title="Meet our Team"]
The shortcode above will display all agents linked to your RateMyAgent agency account and which have been selected under plugin Settings. The header title text will display as
Meet our Team and as no layout has been specified, the default which is layout
1 is used.
Agents Shortcode Example 2
[rma_agents layout="2" section_background_color="#f5f5f5" header_title="Meet our Team" header_sub_title="With over 30 years of experience in the industry, we have what it takes to sell your property"]
The shortcode above will display all agents linked to your RateMyAgent agency account and which have been selected under plugin Settings. The background color for your feed will be
#f5f5f5 which is a light grey. The header title text will display as
Meet our Team with sub title text
With over 30 years of experience in the industry, we have what it takes to sell your property. The layout specified is our pre-built layout