Skip to main content

Shortcode Guidelines

Use shortcodes to display rental items, search forms, and booking widgets anywhere on your WordPress site. All shortcodes support a consistent set of parameters for styling, filtering, and pagination.

Rent List

The primary shortcode for displaying rental items. Renders a grid or list of rental products filtered by type, category, or custom query.

[rent-list]

ParameterValuesDefaultDescription
stylegrid, listgridDisplay layout style
showInteger-1Number of items to display per page (-1 shows all)
orderASC, DESCDESCSort order
orderbydate, title, price, rand, menu_order(empty)Field to sort by
typebike_car_sd, bike_car_md, resort, equipment, dress, appointment(empty)Filter by rental type (bike_car_sd/bike_car_md cover both bike and car items, for single-day and multi-day pricing respectively)
locationString(empty)Filter by rental location
categoryString(empty)Filter by category (falls back to cat_ids if empty)
cat_idsString(empty)Comma-separated category IDs to filter by (e.g. cat_ids='2,6')
meta_keyString(empty)Custom meta key for advanced filtering
columns16(empty)Number of grid columns (grid style only)
paginationyes, noyesShow pagination
hide-priceyes, nonoHide the price from the item card
left-filteryes, no(empty)Enable left sidebar filters
left-title-filteron, offonShow title search in left filter
left-price-filteron, offonShow price range filter in left filter
left-location-filteron, offonShow location filter in left filter
left-category-filteron, offonShow category filter in left filter
left-type-filteron, offonShow type filter in left filter
left-feature-filteron, offonShow feature filter in left filter

Grid with Pagination & Filters

Display rental items in a grid with pagination and left sidebar filters for specific categories.

[rent-list style='grid' show='9' pagination='yes' left-filter='yes' cat_ids='1,2,3']

Rent Add to Cart

Displays a single-item add-to-cart button for a specific rental product. Accepts a valid WooCommerce product ID.

[rent-add-to-cart id="1"]

ParameterValuesDefaultDescription
idInteger(required)Valid WooCommerce product ID

Renders an advanced rental search form with date picker, type selector, and category dropdown. Must be placed on a page with slug search-item-list alongside the [search-result] shortcode.

[rbfw_search]

Search Result

Displays search results from the [rbfw_search] form. Place this on the search-item-list page.

[search-result]

Usage Examples

Basic Grid

  • [rent-list] — default grid showing all items
  • [rent-list style='grid' columns='4' show='12'] — 4-column grid with 12 items
  • [rent-list style='list' show='10'] — list layout with 10 items

Filtered by Type

  • [rent-list type='bike_car_sd'] — only single-day bike/car rentals
  • [rent-list type='bike_car_md' order='ASC' orderby='title'] — multi-day bike/car rentals sorted alphabetically
  • [rent-list type='equipment' show='8' pagination='no'] — equipment without pagination
  • [rent-list type='resort'] — resort bookings

Filtered by Category

  • [rent-list cat_ids='2,6'] — items in categories 2 and 6
  • [rent-list cat_ids='15'] — items in category ID 15
  • [rent-list cat_ids='12' type='bike_car_sd'] — combined category and type filters

With Left Filters

  • [rent-list left-filter='yes'] — enables left sidebar filtering
  • [rent-list left-filter='yes' left-category-filter='on' left-price-filter='on'] — category and price filters
  • [rent-list left-filter='yes' left-type-filter='on' left-location-filter='on'] — type and location filters
  • [rent-list left-filter='yes' left-feature-filter='on' left-title-filter='on'] — feature and title filters
  • Place [rbfw_search] on any page to show the search form
  • Place [search-result] on the search-item-list page
  • The search form value works only when assigned in the rent item settings