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_orderdateField to sort by
typebike, car, resort, equipment, dress, others(empty)Filter by rental type
meta_keyString(empty)Custom meta key for advanced filtering
cat_idsString(empty)Comma-separated category IDs to filter by (e.g. cat_ids='2,6')
columns163Number of grid columns (grid style only)
paginationyes, noyesShow pagination
left-filteryes, nonoEnable left sidebar filters
left-title-filteron, offoffShow title search in left filter
left-price-filteron, offoffShow price range filter in left filter
left-location-filteron, offoffShow location filter in left filter
left-category-filteron, offoffShow category filter in left filter
left-type-filteron, offoffShow type filter in left filter
left-feature-filteron, offoffShow 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

Rent Item Search

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]

Rent Cart

Displays a mini rental cart for the quick checkout flow. Shows selected items, dates, and total cost. Works with the plugin's standalone checkout mode.

[rent-cart]

Rent Checkout

Renders the standalone rental checkout form. Collects customer details, rental dates, and payment info. Only applicable when using the plugin's built-in checkout.

[rent-checkout]

Usage Examples

Practical examples showing how to use shortcodes in different scenarios.

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'] — only bike rentals
  • [rent-list type='car' order='ASC' orderby='title'] — cars sorted alphabetically
  • [rent-list type='equipment' show='8' pagination='no'] — equipment without pagination
  • [rent-list type='others'] — other rental types

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'] — 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

Search

  • 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