Create Amelia booking views as Gutenberg block

If you’ve updated your site to WordPress 5.0 version (or some version above it) you will be able to add Amelia booking shortcodes via Gutenberg editor. Here’s a quick explanation of how you can do that.

First, go to the Pages, choose “Add New” and in the top right corner or below the page title you will see the +” (“Add Block”) option. Once you click on this option you will have the option to choose Amelia or you can write Amelia in the Search block.

When you click on one of the options for displaying the booking form, the shortcode will appear in the block. Depending on which form you have chosen in the menu on the right side you will see an option to enable “Preselect Booking Parameters”. This option you can use for Booking view, and Catalog view, when you want to create a shortcode that will show booking for just one category, service, employee or location, or combination of it. When it is about the Event’s preselected booking parameters, you can set up and show just one particular event with our without the recurring dates, or you can show the events that share the same tag added in the Events modal. For Search view, there is only Today as a preselected booking parameter, at the moment.

If you choose something in these fields you will notice that the shortcode is automatically changed.

When you finish preparing your Amelia shortcode click on the “Publish” button to save your changes and publish the page.

After you publish the page you can view it by clicking on the View page button on the left side or by clicking on the URL link on the right side of the page.

Please note: If you didn't create everything that is needed for Amelia to function properly (ex. services, employees and locations) you will see a red notice, so if you see it, please go back and check what is missing so the Amelia shortcodes can function properly.