Shortcodes

You can add the booking system in your WordPress content, like many other plugins, using a shortcode.

Calendar shortcode

To display the booking calendar please use the following shortcode:

[dopbsp id=1]

... where the attribute id is the ID of the calendar you want to add on your page/post. In the above example we inserted into our content the calendar with ID 1.

Search shortcode

To display an search item on your page please use the following shortcode:

[dopbsp item=search id=1]

... where the attribute id is the ID of the search item, you created in WordPress back end Search section, and you want to add on your page/post.

Change language

To change the booking calendar language please use the following shortcode:

[dopbsp id=1 lang=fr]
[dopbsp item=search id=1 lang=fr]

... where the attribute lang is the code of the language you want to use. The default value is en (English). In the above example we inserted into our content the calendar with the French translation.

You can have same calendar with different translations. For example if you are using a translation plugin like WPML, and you have 2 translations, German and French, you can add the shortcode:

[dopbsp id=1 lang=de]

in German content, and the shortcode:

[dopbsp id=1 lang=fr]

in French content.

Language codes

Here is a list of all the language codes you can use.