Offices Shortcode

Use our Offices Shortcode to display employees from your Malcolm account directly on any page or post.

[rep_offices]

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.

Shortcode Attributes

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

LAYOUT

  • archive – enable archive. Default is false.
  • autoplay – enable or disable autoplay carousel.
  • 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.
  • display –  defines if feed displays as Grid, Carousel or Map view. Defaults to Grid. Options are grid, carousel or map. Specify one only.
  • infinite_carousel – enable or disable infinite carousel.
  • layout – defines which one of our pre-built layouts is used. Defaults to 1. Used in conjunction with display.
    • For display grid or carousel, options are 1, 2, 3 or 4. Specify one only.
  • max_chars – maximum number of characters/words to display in the description. 
  • max_posts – the maximum number of posts to display in your feed.
  • posts_per_page – toggles pagination on. Use in conjunction with max_posts.
  • search_filter – enable search filter. Default is false.
  • view_more_link – display a view more button. Specify the URL.
  • view_more_link_text – display the view more button text. Default is ‘ View More’.

SECTION

  • header_title – displays header title text above the feed.
  • header_sub_title – displays header sub title text above the feed.
  • 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.
  • 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.

FILTER

  • office_id – Specifies the office ID for filtering employees by agency.
  • categories – set the post category.
  • content_to_display – Specifies the content details to display for employees (e.g., contact details, social media).
  • button_to_display – Specifies the buttons to display for employees (e.g., view, enquire).
  • exclude_categories – an array of excluded categories.
  • featured – set as featured. Default is false.
  • orderby – Specifies the order in which employees are displayed (e.g., date, title, menu_order, rand).
  • order – Specifies the order of sorting employees (e.g., ASC, DESC).
  • search_location – Specifies a search location for filtering employees by their location.
  • tags – set the post tags.

CUSTOM

classes –  adds an HTML wrapper class so you can modify the specific output with custom CSS.