<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: xav999</title>
    <description>The latest articles on DEV Community by xav999 (@xav999).</description>
    <link>https://dev.to/xav999</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4238657%2Fd654b771-4a73-4867-9f9e-7a782680b8ef.png</url>
      <title>DEV Community: xav999</title>
      <link>https://dev.to/xav999</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xav999"/>
    <language>en</language>
    <item>
      <title>Add a Free Availability Calendar to a Holiday Rental Website</title>
      <dc:creator>xav999</dc:creator>
      <pubDate>Wed, 11 Nov 2026 08:33:59 +0000</pubDate>
      <link>https://dev.to/xav999/add-a-free-availability-calendar-to-a-holiday-rental-website-4cle</link>
      <guid>https://dev.to/xav999/add-a-free-availability-calendar-to-a-holiday-rental-website-4cle</guid>
      <description>&lt;p&gt;If you build websites for cottages, guest houses, or other short-term rentals, one question appears on almost every project:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How can guests see availability without turning the website into a full booking platform?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A small hosted calendar is often enough. The property owner maintains the dates in one place, while the website displays a read-only view of available, pending, and booked periods.&lt;/p&gt;

&lt;p&gt;This tutorial shows two ways to add that kind of calendar: a WordPress shortcode and a plain HTML embed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we are building
&lt;/h2&gt;

&lt;p&gt;The finished page should:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;show availability without storing booking data in the CMS;&lt;/li&gt;
&lt;li&gt;work on mobile screens;&lt;/li&gt;
&lt;li&gt;distinguish available, pending, and booked dates;&lt;/li&gt;
&lt;li&gt;load lazily so it does not delay the rest of the page;&lt;/li&gt;
&lt;li&gt;have an accessible title for screen readers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see an &lt;a href="https://shared-house.github.io/shared-house_wordpress_plugin/#demo" rel="noopener noreferrer"&gt;illustrative availability-calendar demo&lt;/a&gt; before implementing it. The dates in that demo are intentionally fictional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: use the WordPress plugin
&lt;/h2&gt;

&lt;p&gt;The quickest WordPress setup uses the open-source &lt;a href="https://wordpress.org/plugins/shared-house/" rel="noopener noreferrer"&gt;WordPress booking calendar plugin by Shared House&lt;/a&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a listing and note its numeric ID.&lt;/li&gt;
&lt;li&gt;Install and activate the plugin.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;Settings → Shared House&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter the listing ID, language, and season-legend preference.&lt;/li&gt;
&lt;li&gt;Add the calendar to a page with this shortcode:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[shared_house]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can override the defaults for a specific page:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[shared_house numero="132" langue="en" saisons="avec"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The example uses listing &lt;code&gt;132&lt;/code&gt;, which is the demonstration listing. Replace it with the property owner's listing number.&lt;/p&gt;

&lt;p&gt;The calendar supports French, English, Dutch, Spanish, German, and Finnish. Dates remain managed on Shared House; the WordPress plugin only renders the hosted calendar.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: add a plain HTML embed
&lt;/h2&gt;

&lt;p&gt;For a static site or a custom CMS, an iframe keeps the integration small:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"availability-calendar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;iframe&lt;/span&gt;
    &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://www.shared-house.com/embed.php?id=132&amp;amp;lang=en&amp;amp;view=month&amp;amp;seasons=1"&lt;/span&gt;
    &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Holiday rental availability calendar"&lt;/span&gt;
    &lt;span class="na"&gt;loading&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"lazy"&lt;/span&gt;
    &lt;span class="na"&gt;referrerpolicy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"strict-origin-when-cross-origin"&lt;/span&gt;
    &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"320"&lt;/span&gt;
    &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"430"&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a little CSS so the embed fits narrow layouts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.availability-calendar&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;320px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;margin-inline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.availability-calendar&lt;/span&gt; &lt;span class="nt"&gt;iframe&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;320px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;lang&lt;/code&gt; query parameters for the property. Set &lt;code&gt;seasons=0&lt;/code&gt; when the seasonal legend is not needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the integration useful and trustworthy
&lt;/h2&gt;

&lt;p&gt;A calendar is only helpful when visitors understand what it represents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Label fictional demonstrations
&lt;/h3&gt;

&lt;p&gt;If you publish a sample calendar, say clearly that its dates are illustrative. A visitor should never confuse demo data with the availability of a real property.&lt;/p&gt;

&lt;h3&gt;
  
  
  Give the iframe a meaningful title
&lt;/h3&gt;

&lt;p&gt;Avoid an empty &lt;code&gt;title&lt;/code&gt; attribute. “Holiday rental availability calendar” tells assistive technology what the embedded content contains.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep an ordinary link as a fallback
&lt;/h3&gt;

&lt;p&gt;An iframe can be blocked by a privacy extension or a restrictive Content Security Policy. Add a normal link near it so the calendar remains reachable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://www.shared-house.com/index_booking_calendar.php"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Create a free availability calendar for a holiday rental
  &lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://www.shared-house.com/index_booking_calendar.php" rel="noopener noreferrer"&gt;free booking and availability calendar by Shared House&lt;/a&gt; provides the listing and calendar ID used by both integrations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do not treat availability as a confirmed booking
&lt;/h3&gt;

&lt;p&gt;The calendar communicates dates. A reservation still needs the owner's normal enquiry or booking workflow. Keep that distinction explicit in the surrounding copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  A compact implementation checklist
&lt;/h2&gt;

&lt;p&gt;Before shipping, check that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the property ID is correct;&lt;/li&gt;
&lt;li&gt;the language matches the page;&lt;/li&gt;
&lt;li&gt;the iframe has a descriptive title;&lt;/li&gt;
&lt;li&gt;the layout works at 320 CSS pixels;&lt;/li&gt;
&lt;li&gt;a visible fallback link is present;&lt;/li&gt;
&lt;li&gt;demonstration dates are labelled as fictional;&lt;/li&gt;
&lt;li&gt;the owner knows where to update availability.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is enough for a focused availability page without adding a database, a custom calendar UI, or booking logic to the website itself.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
