🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 4, 2026

How to Add Hotel Booking to WordPress (Rooms, Calendar, Deposits)

GravityExtra
How to Add Hotel Booking to WordPress (Rooms, Calendar, Deposits)

Every booking that comes through your own website is a booking you keep in full: no commission, a direct line to the guest, and your own rules for deposits and cancellations. What stops many small hotels, guest houses and rental owners is the fear of getting it wrong: two guests in the same room, a price that changes at checkout, a payment that never arrives while the room stays blocked. This guide walks through adding hotel booking to WordPress the careful way, from planning your rooms and prices to taking payments and keeping other booking sites in step.

Plan your accommodations before you install anything

Start with paper. List the kinds of rooms you sell, not the rooms themselves: “Garden Double Room”, “Harbour Suite”, “Family Room”. For each one, write down how many guests it takes (adults, children and in total), the beds, the size and the amenities guests ask about most: Wi-Fi, breakfast, parking, air conditioning, a private bathroom, step-free access. Then list the actual rooms of each kind. Guests choose the kind of room; the system gives them one of the rooms that is free for every night of their stay.

This split matters. If you set up each physical room as its own product, guests have to search through near-identical rooms, and your calendar fills up unevenly. If you set up only the kinds of rooms without their rooms, the system cannot tell that the third double room is still free when two are booked.

Prices that follow your seasons

A booking system should price each night on its own. A stay from Thursday to Sunday in spring is two weekday nights and one or two weekend nights, and a week that crosses into summer is part spring, part summer. Write down:

  • your normal price per night for each kind of room,
  • your seasons with their first and last night and their price,
  • weekend prices, which are simply a season that covers the whole year but only Friday and Saturday nights,
  • special weeks such as festivals, which should win over the weekend price,
  • your minimum stays, overall and per season (three nights in summer is common).

Then decide what guests can add (breakfast per guest per night, parking per night, an airport transfer per stay) and what every booking pays (a cleaning fee per stay, a city fee per guest, your tax rate). Showing all of these as separate lines before the guest pays avoids the most common complaint about direct booking: a total that grows at the last step.

Install a booking plugin and set the basics

With GravityExtra Stay Booking, you install the plugin, activate your license and work through three settings tabs. On General you set the currency, check-in and check-out times, how far ahead guests may book, the tax rate and your fees. On Payments you choose the deposit and the payment methods. On E-mails you set where booking notices go and the footer with your address and phone number.

Next, add your accommodations. Each one gets its title, description and photos, its price and capacity, its seasonal rates and extras, and the list of its rooms. Each accommodation gets its own page with the booking area. A search page takes one shortcode in the block editor, and the results list only what is free for every night and fits the party, each with the full price of the stay.

Make the calendar do the explaining

An availability calendar answers the guest’s first question before they type anything: which nights are free and what they cost. Show two months side by side, mark free nights clearly, show the price on each free night and the minimum stay where it applies. Let guests click a check-in day and a check-out day, and update the price box straight away.

The booking area of a guest house room: a two-month availability calendar with nightly prices, the chosen stay highlighted, check-in and check-out dates, guests, extras and the price with cleaning fee, VAT and a 30 percent deposit
Guests pick their dates on the calendar and see the full price before they book.

Two details make a calendar usable for everyone. First, it should work with the keyboard: every day reachable with Tab, the arrow keys moving between days, Enter selecting, and a spoken label that says the full date and whether the night is free. Second, it must work on a phone, where most guests book: days large enough to tap, one column, nothing wider than the screen.

Deposits, balances and the payment step

Deposits protect you against no-shows without asking guests for the whole amount months ahead. A percentage of the total works for most properties; a fixed amount suits low prices or long stays. Let guests choose to pay everything at once if they prefer, and make the balance easy to pay later: a link in the confirmation e-mail to the guest’s own booking page, where they can pay by card or PayPal, or pay at the desk when they arrive.

For the payment itself, sending guests to the payment provider’s own page has real advantages for a small property. The card form lives on the provider’s site, your pages load no outside payment script, and guests see a checkout they know. GravityExtra Stay Booking uses Stripe’s hosted Checkout page and the PayPal Orders API this way.

Three checks that keep the money right

Whatever system you use, ask how it handles these three situations, because they are where direct booking goes wrong.

The amount the guest sees is the amount that is charged

The price should be calculated on the server, night by night, and the browser should only show that result. When the guest presses Book, the server should calculate again and compare: if you changed a price in the meantime, the guest sees the new total and decides again. The amount sent to the payment provider and the amount stored with the booking must be the same number, and the plugin keeps every amount as a whole number of cents so nothing is lost to rounding.

A booking is only paid when the payment provider says so

Coming back from the payment page proves nothing on its own; a guest could close the tab, or a link could be typed by hand. A booking should be marked paid only when the provider confirms it: a webhook signed with your secret, or the payment read back from the provider with your secret key. And the confirmed amount must match the booking. Stay Booking also refuses webhooks with a missing, wrong or stale signature, and counts the same payment once even when the return page and the webhook arrive at the same moment.

A room cannot be sold twice

The classic overbooking happens when two guests book the last room at the same second: both checks see the room as free, both bookings are saved. The reliable fix is to let the database decide. Stay Booking stores each booked night of each room once and takes every night of a stay in one statement that the database refuses if any of those nights is already taken. One guest gets the room; the other is told right away and can choose other dates.

Hold the room while the guest pays

Paying takes a few minutes, and during that time nobody else should be able to take the room. A payment hold does this: the room is reserved for, say, 30 minutes. If the payment arrives, the booking is confirmed; if not, the hold ends and the nights become free again. If a payment arrives late and the nights are still free, the booking can still be confirmed; if someone else took them, you get an e-mail and can offer the guest another room.

Keep other booking sites in step with iCal

Most properties also sell rooms on other booking sites. Calendar sync with iCal keeps everyone up to date without double work: each room has an export address that you give to the other sites, so they block the nights booked on your site, and you paste their calendar addresses into the room so their bookings block your calendar. Good feeds contain booked nights and a reference, never guest names or phone numbers. Sync runs every hour; when two bookings overlap because a channel was slow, keep both and sort it out with the guest rather than deleting one automatically.

Run the front desk from one screen

Once bookings arrive, you need three views. A list with filters for status, payment, accommodation and dates, and a search by reference, name or e-mail. A booking page with the stay, the guest, the price lines, the payments and actions to confirm, record a payment, resend the confirmation or cancel. And a month calendar with one row per room, so you see at a glance which rooms are free tonight and which stays start this weekend. Give front-desk staff access to these screens only, not to the rest of your site.

Before you go live

  • Book a stay yourself in Stripe test mode and PayPal sandbox, with a deposit and in full, and pay the balance from the booking page.
  • Check that every price line appears in the e-mail and that the lines add up to the total.
  • Let a payment time run out and check that the nights become free again.
  • Add your export address to one other booking site and import theirs; check the admin calendar.
  • Book on a phone, and once with the keyboard alone.
  • Switch to live keys and add the webhooks for live mode.

Frequently asked questions

Do I need a separate booking engine or a channel manager? Not for a small property. A booking plugin on your own site plus iCal sync with the other sites covers what most guest houses and small hotels need.

Can guests pay at the property instead? Yes. Bookings without online payment stay pending until you confirm them, and you record the payment when the guest pays at the desk.

Will it slow my site down? The booking pages load one small stylesheet and one small script without jQuery, and other pages load nothing from the plugin except where you use its shortcodes.

Ready to take direct bookings? Get GravityExtra Stay Booking and follow the setup guide to add your first accommodation today.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr