1. Home
  2. Dokumente
  3. Informationen zur alten V...
  4. Template Tags & Shortcodes (Version 0.9.x)

Template Tags & Shortcodes (Version 0.9.x)

Bookings Template Tags

Please note: USER_NAME has been depreciated. Please use FIRST_NAME / LAST_NAME

Die folgenden Template-Tags können in Nachrichten und E-Mails benutzt werden. Usage:

Hello {{FIRST_NAME}}, thanks for booking item {{ITEM_NAME}}.

A full Example: Confirmation email example See also Registration Mail Template Tags



{{DATE_START}} – Pickup Date

{{DATE_END}} – Return Date


{{ITEM_NAME}} – Name of the booked Item

{{ITEM_THUMB}} – Thumbnail of the booked Item

{{ITEM_CONTENT}} – The short description of the item


{{LOCATION_NAME}} – Name of the location

{{LOCATION_CONTENT}} – The short description of the location

{{LOCATION_ADRESS}} – The adress

{{LOCATION_THUMB}} – Thumbnail of the Location

{{LOCATION_CONTACT}} – Contact information


{{FIRST_NAME}} – First name of user

{{LAST_NAME}} – Last name of user

{{USER_EMAIL}} – User email

{{USER_ADDRESS}} – Address

{{USER_PHONE}} – Phone number


{{CODE}} – The booking code.



{{SITE_EMAIL}} – The email address the confirmation email will be sent from.

Registration Mail Template Tags

The following template tags can be used in the registration confirmation email settings. Example: Registration Email Example



Hi {{USER_LOGIN}}, here is your account information


All template tags

{{USER_LOGIN}} – The chosen user name

{{EMAIL}} – The Email





{{ACTIVATION_URL}} – The url used for activation.

{{PASSWORD}} – The password –  Depreciated! See discussion here: https://bitbucket.org/wielebenwir/commons-booking/issues/125/password-can-not-be-sent-in-registration




Commons Booking bietet 2 shortcodes:

  • cb_items (Liste der Artikel)
  • cb_item_categories (Liste der Artikel-Kategorien) – ab Version 0.9




In a WordPress editor field, enter the following to show all items, sorted alphabetically by title






Artikel-Liste – Parameter

The parameters are a subset of the wordpress WP_QUERY params.

p: item id

Get one single item by item id

[cb_items p=17]

(How to find the item id: Edit the item and look at the URL: "?post=17&action=edit )

cat: category id

Get all items from a category

[cb_items cat=4]

orderby: set sort order

title, date, rand, menu_order

[cb_items orderby=title]