Skip to content

Store Listing Shortcode

[rda_dokan_store_listing] outputs a paged grid of Dokan stores with an optional vendor search box. It renders through Dokan’s store-lists template part, so the store list layout follows the theme.

[rda_dokan_store_listing]
Attribute Default Description
per_page 10 Number of stores shown per page.
search yes Set to yes to show the vendor search box and honor the dokan_seller_search query. Any other value disables search.
per_row 3 Number of stores per row.
featured no Set to yes to show only featured vendors.
enable_slider false Set to a truthy value to render the grid as a slider.
selected_vendors (none) Comma-separated vendor IDs. When set, only those vendors are listed and the featured and search filters are bypassed.

Show six featured stores, two per row:

[rda_dokan_store_listing per_page="6" per_row="2" featured="yes"]

Show a fixed set of vendors by ID:

[rda_dokan_store_listing selected_vendors="12,34,56"]

Disable the search box:

[rda_dokan_store_listing search="no"]

The grid is paged using the paged query variable, so it works on a static page or archive that supports pagination. per_page sets the page size and the offset is calculated from the current page.

  • When search is yes, the search box submits the dokan_seller_search term, which matches stores by store name.
  • Developers can filter the default attributes and the seller query. See Hooks and Filters.