# Dates blacking out

**URL:** <https://community.hivepress.io/t/dates-blacking-out/1170>\
**Category:** Bookings\
**Tags:** bookings\
**Created:** [August 2, 2022, 2:13pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170 "2022-08-02T14:13:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![zackgoble4](https://community.hivepress.io/user_avatar/community.hivepress.io/zackgoble4/32/567_2.png) [@zackgoble4](https://community.hivepress.io/u/zackgoble4)\
**Post date:** [August 2, 2022, 2:13pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/1 "2022-08-02T14:13:20Z")

</div>

When I book a date on the site it blacks out that date even if I do not hit the number of guests allowed. Example, a trip has 4 available spots (4 max guests), a customer books a date for 2 guests. This then blacks out the entire date instead of having 2 slots available for that day. I cannot do time slots because then it disables the date search feature on the search bar. How can I stop this from happening?

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [August 3, 2022, 10:54pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/3 "2022-08-03T22:54:55Z")

</div>

Please make sure that you have the latest Bookings version (released this week). If this issue persists please send the steps for reproducing it with temporary WP access via email to [support@hivepress.io](mailto:support@hivepress.io) and I’ll check it, if there’s a bug we’ll fix it directly on your site and also in the next update.

---

<div class="post-metadata">

**Author:** ![zackgoble4](https://community.hivepress.io/user_avatar/community.hivepress.io/zackgoble4/32/567_2.png) [@zackgoble4](https://community.hivepress.io/u/zackgoble4)\
**Post date:** [August 5, 2022, 2:48pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/4 "2022-08-05T14:48:24Z")

</div>

Booking pluggin is updated, issue still persists. Temp login sent to email.

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [August 6, 2022, 12:32pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/5 "2022-08-06T12:32:16Z")

</div>

Thanks, I received the credentials and will check this as soon as possible. Please also send the steps for reproducing this issue, e.g. if a specific listing should be checked or if there are any specific details. This really helps to detect and resolve issues faster without requesting further details.

---

<div class="post-metadata">

**Author:** ![zackgoble4](https://community.hivepress.io/user_avatar/community.hivepress.io/zackgoble4/32/567_2.png) [@zackgoble4](https://community.hivepress.io/u/zackgoble4)\
**Post date:** [August 6, 2022, 1:48pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/7 "2022-08-06T13:48:22Z")

</div>

There is only one listing up at the moment! And to recreate the issue, just book any date available with less the the max guest number (4) and it will block out instead of leaving it available for the remaining spots. Example, Book for 2 guests and it’ll still blow l the date out instead of make that date have two slots left available.

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [August 6, 2022, 11:04pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/8 "2022-08-06T23:04:02Z")

</div>

Thanks for the details. I checked settings in HivePress/Settings/Bookings and multiple bookings per time period are not allowed [Screenshot by Lightshot](https://prnt.sc/tbWRVH97G9u5)

If this option is unchecked, any confirmed booking will block the dates, in this case the Guests field is just used to indicate the number of expected guests and prevent booking if there are more guests.

For example, if the apartment allows 4 guests max it will not allow selecting 5, but without the “allow multiple bookings…” checked option it’ll still block the dates if there’s at least 1 booking.

---

<div class="post-metadata">

**Author:** ![zackgoble4](https://community.hivepress.io/user_avatar/community.hivepress.io/zackgoble4/32/567_2.png) [@zackgoble4](https://community.hivepress.io/u/zackgoble4)\
**Post date:** [August 6, 2022, 11:33pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/9 "2022-08-06T23:33:22Z")

</div>

Okay, I had that unchecked because I need to have the Dates in the search bar. How can I have the dates in the search bar and have the multiple bookings per time period enabled?

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [August 7, 2022, 2:54pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/11 "2022-08-07T14:54:07Z")

</div>

Sorry, the availability search is not available for “multiple bookings per period” mode yet, I can enable this in the code on your site but it will consider listing as booked (in search results only) even if there’s a single booking for the selected dates (it’ll be still available if someone views the listing page or finds this listing by other criteria).

---

<div class="post-metadata">

**Author:** ![zackgoble4](https://community.hivepress.io/user_avatar/community.hivepress.io/zackgoble4/32/567_2.png) [@zackgoble4](https://community.hivepress.io/u/zackgoble4)\
**Post date:** [August 7, 2022, 3:11pm UTC](https://community.hivepress.io/t/dates-blacking-out/1170/12 "2022-08-07T15:11:53Z")

</div>

Can you please enable that in the code? Thank you!

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [August 9, 2022, 1:01am UTC](https://community.hivepress.io/t/dates-blacking-out/1170/14 "2022-08-09T01:01:24Z")

</div>

I added a new snippet to the Code Snippets that enables the Dates search field regardless of the settings.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [September 8, 2022, 1:01am UTC](https://community.hivepress.io/t/dates-blacking-out/1170/15 "2022-09-08T01:01:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
