Default Shortcode
The following shortcode displays all the categories, 2 in a row.
[rem_categories]
Columns
You can use the columns attribute to control the number of columns. This works for both grid and slider layouts.
[rem_categories columns="3"]
For example,
- 1 – 1 Column
- 2 – 2 Columns
- 3 – 3 Columns
- 4 – 4 Columns
- 5 – 5 Columns
- 6 – 6 Columns
In grid view, columns are automatically converted to Bootstrap classes. In the slider view, columns control the number of visible slides.
You can still use the class attribute to manually define Bootstrap classes if needed.
[rem_categories class="col-sm-4"]
Order
You can use the order and orderby attributes to change the order of categories displayed.
orderby can have the following values
- name – Category Title
- term_id – Category ID
- count – Number of Properties in that Category
order can have the following values
- ASC – ascending
- DESC – descending
The following shortcode will display the categories in ascending order as per the number of listings.
[rem_categories orderby="count" order="ASC"]
Display Empty Categories
By default, categories with 0 properties are not displayed. You can change this behavior by setting hide_empty to 0.
[rem_categories hide_empty="0"]
Display Specific Categories
You can use the include attribute and provide comma or space-separated category IDs to display only those.
[rem_categories include="10,12,13,14"]
Exclude Specific Categories
You can use the exclude attribute and provide comma or space-separated category IDs and they will not appear.
[rem_categories exclude="10,12,13,14"]
Display Type
You can display categories as a grid or a slider using the display attribute.
[rem_categories display="slider"]
Slider Settings
When using the slider display, you can control behavior using the following attributes.
- slides_to_show – Number of slides to show
- slides_to_scroll – Number of slides to scroll
- arrows – enable or disable navigation arrows
- dots – enable or disable pagination dots
- adaptive_height – enable or disable adaptive height
- autoplay – enable or disable autoplay
- autoplay_speed – autoplay delay in milliseconds
- infinite – enable or disable infinite loop
[rem_categories display="slider" columns="3" autoplay="enable" arrows="enable"]
Responsive behavior is handled automatically. Desktop shows the selected number of columns, tablet shows 2 columns, and mobile shows 1 column.
Masonry Layout
You can enable masonry layout for grid display using:
[rem_categories masonry="enable"]
Image Settings
You can control image size and height using:
- images_size – WordPress image size (thumbnail, medium, large, full)
- images_height – fixed height for images
[rem_categories images_size="medium" images_height="200"]
Content Visibility
You can control what content is displayed inside each category.
- show_image – enable or disable image
- show_count – enable or disable property count
- show_description – enable or disable description
[rem_categories show_description="disable"]
Styles
You can change the visual appearance using the style attribute.
[rem_categories style="1"]
Available styles depend on your theme or plugin configuration.
Arrow Styles
When using the slider display, you can change arrow appearance using the arrows_style attribute.
Example:
[rem_categories display="slider" arrows_style="2"]
Limit and Offset
You can limit the number of categories displayed.
[rem_categories limit="6"]
You can also skip a number of categories using offset.
[rem_categories offset="3"]
Parent Categories
You can display only child or parent categories using the parent attribute.
[rem_categories parent="0"]
This will display only top-level categories.