WP BASE Shortcodes – Adding and Editing

You are here:

To reduce conflicts and prevent performance impact on your website, WP BASE loads its javascript and css files only to pages in which WP BASE functionality will be used. This is automatically handled by checking WP BASE shortcodes’ existence in the pages to be sent to the browser, before they were sent. We call any page having a WP BASE shortcode a WP BASE page. These are the shortcodes available with the core:

[app_book] The main booking shortcode. By itself it is sufficient to create a complete booking page.

[app_list] Creates list of bookings for client, or service provider or admin.

[app_is_mobile] Displays its embedded content only if user is connected with a mobile device.

[app_is_not_mobile] Displays its embedded content only if user is NOT connected with a mobile device.

There are also other shortcodes added by Addons. They will be explained in their own articles.

The functionality of shortcodes of addons is always included to [app_book]. This means, you may not need to use those shortcodes unless you have special modular shortcode requirements. Please refer to Advanced Features addon for modular shortcodes.

Adding Shortcodes

While you can directly type shortcode into the post editor, WP BASE provides a shortcode tool which displays attributes and their description. To add a shortcode using this tool:

  1. In the post editor click the WP BASE Shortcode Insert button in the toolbar. A popup will open
  2. In the left upper corner of the popup there is the shortcode selection menu. Select the shortcode
  3. Refer to the attribute descriptions and fill attributes as required
  4. Click Insert button. Shortcode will be placed on the editor

Editing a Shortcode

  1. First select the shortcode to be edited with your mouse or keys and then click WP BASE Shortcode Insert button in the toolbar
  2. Shortcode is selected and attribute fields are filled in the popup
  3. Make the changes and click Replace button

Detailed description of each shortcode can also be found in WordPress admin WP BASE → Help → Shortcodes page