Vendors Shortcode
[rda_dokan_vendors] outputs a vendor grid with a title, configurable columns and count, four layout styles, and an optional slider. It renders through the addon’s widgets/rda-sellers template part. The same grid is available as the Vendors Widget.
Basic usage
Section titled “Basic usage”[rda_dokan_vendors]Attributes
Section titled “Attributes”| Attribute | Default | Description |
|---|---|---|
title |
Featured Vendors |
Heading shown above the grid. |
per_row |
3 |
Number of vendors per row. |
count |
6 |
Number of vendors to show. |
show_featured_only |
false |
Set to a truthy value to show only featured vendors. |
enable_slider |
false |
Set to a truthy value to render the grid as a slider. |
layout |
layout-type-1 |
Card layout: layout-type-1, layout-type-2, layout-type-3, or layout-type-4. |
selected_vendors |
(empty) | Comma-separated vendor IDs. When set, only those vendors are shown. |
Layout styles
Section titled “Layout styles”layout-type-1shows vendor details next to the avatar.layout-type-2shows the avatar next to vendor details, reversed.layout-type-3andlayout-type-4show the avatar with the store name only.
Examples
Section titled “Examples”Show eight featured vendors, four per row, in layout 2:
[rda_dokan_vendors count="8" per_row="4" layout="layout-type-2" show_featured_only="true"]Show a specific set of vendors as a slider:
[rda_dokan_vendors selected_vendors="12,34,56" enable_slider="true"]Card contents
Section titled “Card contents”Each vendor card shows the store name (linked to the store), a star rating or a “Not rated yet” note, the vendor avatar, and a Visit Store button. When no vendors are found, the grid shows a “No vendors found” message.

