[rep_team_members]

You can use our Team Member Listing Shortcode to display team members 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 customise the output.

GENERAL LAYOUT

  1. display – Defines the display between Grid, and Carousel view.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Display.
    • Options: grid, carousel.
  2. layout – Controls the layout of each team members on the result.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > 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 team members 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 layout under Malcolm > Settings > General > General > Columns.
    • Options: From 1 to 5. Specify one only.
  4. group_by – Defines the criteria by which team members will be grouped.
    • Options: team, office.
  5. group_layout – Defines how the grouped items will be displayed.
    • Default: grid.
  6. max_chars – Maximum number of characters/words to display in the description. 
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Max Characters.
    • Options: Integer values. Recommended value is around 150.
  7. max_posts – The maximum number of team members to display.
    • Default: The default value is based on the selected layout 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 layout 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 layout under Malcolm > Settings > General > General > Autoplay.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  2. infinite_carousel – Enable or disable infinite carousel, allowing the carousel to slide endlessly.
    • Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Infinite Carousel.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.

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 the HTML wrapper for the feed. Use image URL.
  4. section_background_color – Adds a background color to the section. Use valid CSS color value.
  5. section_font_color – Defines the font color of section header and section footer.
  6. section_width – Defines the width of the feed.
    • Default: default (which is a max width of 1140px).
    • Options: default, small, medium, large or full (specify one only).
  7. view_more_link – URL to view more agencies.
  8. view_more_link_text – Text to display on the section view more button. This is not applicable when archive is on.
    • Default: View more.
  9. classes – Adds an HTML wrapper class so you can modify the specific output with custom CSS.
  10. id – Adds an HTML wrapper ID 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. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  2. search_filter – Display the search filter form to search through the team members. Setting this on will set archive attribute to on regardless of the value set on that attribute.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  3. show_search_count – Display the number of agents found above the search filter.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
  4. office_id – Specifies the office ID for filtering team members by office.
  5. office_lid – Filters team members by office LID.
  6. office_post_id – Specifies the office post ID for filtering team members by office.
  7. team_id – Specifies the team ID for filtering team members by team.
  8. exclude_team_ids – An array of excluded team IDs.
  9. orderby – Specifies the order in which team members are displayed.
    • Default: The default value is based on the selected value under Malcolm > Settings > Teams > General > Order By.
    • Options: date, title, category, menu_order, rand. Specify one only.
  10. order – Specifies the order of sorting team members.
    • Default: The default value is based on the selected value under Malcolm > Settings > Teams > General > Order.
    • Options: asc, desc. Specify one only.
  11. group_orderby – Defines the criteria by which the groups will be sorted.
    • Default: name.
    • Options: name, id, specific list of ids (the specific order of group IDs separated by commas). Specify one only.
  12. group_order – Defines the sorting direction of the groups.
    • Default: asc.
    • Options: asc, desc. Specify one only.
  13. featured – Filters team members based on their “featured” status.
    • Default: off.
    • Options: on or off. Other truthy value is accepted like ‘yes’, ‘no’, ‘1,’ , ‘0’, ‘true’, ‘false’.
  14. search_location – Specifies a search location for filtering team members by their location.
  15. categories – Set the post categories.
  16. exclude_categories – An array of excluded categories.
  17. tags – Set the post tags.

CONTENT

  1. content_to_display – Specifies the content details to display for team members.
    • Default: The default value is based on the selected value under Malcolm > Settings > Teams > Display > Featured Details.
    • Options: contact_details, description, rating, social_media, statistic, website. Use commas , to separate values.
  2. button_to_display – Specifies the buttons to display on each team member.
    • Default: The default value is based on the selected value under Malcolm > Settings > Teams > Display > Featured Buttons.
      • Options: view, enquire. Use commas , to separate values.

Example Usage

[rep_team_members office_id="12" search_location="Canberra" featured="yes" display="grid" search_filter="on"]
Example:
This example displays a list of team members with the following parameters:
– Filters team members by office ID (in this case, office ID 12);
– Displays only team members located in Canberra;
– Shows only team members marked as “featured”;
– Sets the display layout to a grid (Grid Layout);
– Enables the search filter form, allowing users to filter employees based on specified criteria. This automatically sets the archive="on" attribute.
Featured Team members: Team members be filtered to only show featured team members 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 > Teams > Archive Page > Archive Page Layout.