Knowledgebase
Maestrel > Help Desk > Knowledgebase

Browse our knowledgebase...




 
Knowledgebase » How to ... »

How to use a different page to display my accommodation types?

Answer

I wish to display my accommodation using the page I have already created instead of HBook accommodation type post. I would like that the "View accommodation" button open up the pages of my theme that I use to show my rooms or property. How can I do that?

Let's say that you have  already created pages to showcase your rooms and you wish now to add HBook booking system. You will create HBook accommodation types only to provide the settings for the booking system (occupancy, descriptions for the search results, number of accommodation of this type).

For each HBook accommodation type, you will indicate in Accommodation display section the id of the page that you wish to use for showing the accommodation. It can be a theme page, a custom post type page, etc...

To find out what is the id of the page you wish to use, you will check the url of the page when you edit it. For example: www.mywebsite.com/wp-admin/post.php?post=213&action=edit. This tells you that the post/page id is 213.

It has several effects:

  • You can then use HBook shortcodes on your theme page without specifying the "accom_id" parameter. HBook will know what accommodation type is concerned.
  • At the accommodation selection step of the booking process, the "View accommodation" button will redirect to your theme page.
  • At the accommodation selection step of the booking process, if you have set that the thumbnail and title of the accommodation type should link to the accommodation page, it will open your theme page.
  • In the accommodation list, if you have set that the thumbnail should link to the accommodation page, it will open your theme page.
Related articles Can I use a page builder as Elementor, Divi builder, Beaver builder, Visual Composer... with HBook?
How to sort the accommodation types in the search results? How to show from lower to higher price?
How to display the results of a search in a new page? Is it possible to redirect the customer to a different page to view the results of the search?
Is multiple room booking possible? How does it work?
How to find the accommodation ID needed for "accom_id" parameter in the shortcodes?
Themes Booking Plugin Pricing Blog Contact