[rep_projects]
You can use our Projects Listing Shortcode to display a list of projects 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
- 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,tab.
- layout – Controls the layout of each agency on the result.
- Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Layout.
- Options: From
1to5. Specify one only.1– Image above content2– Image left content3– Image right content4– Image overlay content5– Content only
- columns – Defines how many agencies are displayed per row. Use in conjunction with layout
1,4, and5. This attribute is ignored on layout2and3.- Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Columns.
- Options: From
1to5. Specify one only.
- max_chars – Maximum number of characters to display in the project 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
- max_posts – The maximum number of agencies to display.
- Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Max Posts.
- Options: Integer values.
GRID LAYOUT
- 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
- autoplay – Enable or disable carousel autoplay.
- Default: The default value is based on the selected layout under Malcolm > Settings > General > General > Autoplay.
- Options:
onoroff. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
- 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:
onoroff. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
SECTION
- header_title – Displays section title on the section header above the section body.
- header_sub_title – Displays section sub title on the section header above the section body.
- section_background_image – Adds a background image to section. Use image URL as value.
- section_background_color – Adds a background color to the section. Use valid CSS color value.
- section_font_color – Defines the font color used on the section. Use valid CSS color value.
- section_width – Defines the width of the section.
- Default:
default(which is a max width of 1140px). - Options:
default,small,medium,largeorfull. Specify one only.
- Default:
- view_more_link – URL to view more agencies.
- view_more_link_text – Text to display on the section view more button. This is not applicable when
archiveison.- Default:
View more.
- Default:
- classes – Adds an HTML class to the section wrapper so you can modify the specific output with custom CSS.
- id – Adds an HTML ID to the section wrapper so you can modify the specific output with custom CSS.
FILTER
- types – Project types.
- search_location – Specifies a search location for filtering projects by location.
- office_id – Specifies the office ID for filtering projects by office.
- office_post_id – Specifies the office post ID for filtering projects by office.
- team_member_id – Specifies the team member ID for filtering projects by team member.
- archive – If set, the shortcode will allow filtering the results based on the user search.
- Default: off.
- Options:
onoroff. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
- search_filter – Display search filter form to search through the agencies. Setting this on will set
archiveattribute toonregardless of the value set on that attribute.- Default: off.
- Options:
onoroff. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
- featured – Set as featured.
- Default: off.
- Options:
onoroff. Other truthy value is accepted like ‘yes’, ‘no’, ‘1’, ‘0’, ‘true’, ‘false’.
- orderby – Specifies the order in which projects are displayed.
- Default: The default value is based on the selected value under Malcolm > Settings > Projects > General > Order By.
- Options:
date,menu_order,rand. Specify one only.
- order – Specifies the ordering direction of projects.
- Default: The default value is based on the selected value under Malcolm > Settings > Projects > General > Order.
- Options:
asc,desc. Specify one only.
- categories – Set the post categories.
- exclude_categories – An array of excluded categories.
- tags – Set the post tags.
CONTENT
- content_to_display – Specifies what content details to display for projects.
- Default: The default value is based on the selected value under Malcolm > Settings > Projects > Display > Featured Details.
- Options:
address,description,price,project_attributes,status. Use commas,to separate values.
- button_to_display – Specifies the buttons to display on each agency.
- Default: The default value is based on the selected value under Malcolm > Settings > Projects > Display > Featured Buttons.
- Options:
view,enquire. Use commas,to separate values.
Example Usage
[rep_projects display="grid" layout="2" content_to_display="description,price,status" button_to_display="view,enquire"view_more_link_text="View More Projects" view_more_link="/projects" search_filter="on"]
| Example: This example display a list of projects are shown in a grid layout, the project image appears on the left side of the content, each project shows its description, price, status and “View” and “Enquire” buttons. A button labeled “View More Projects” allows users to explore additional projects. Enables the search filter form. This automatically sets the archive="on" attribute. |
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 > Projects > Archive Page > Archive Page Layout.