Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Hide certain Accommodation Type from appearing in search
- This topic has 7 replies, 4 voices, and was last updated 1 month ago by
J. Davis.
- AuthorPosts
- September 7, 2021 at 11:16 am #1181452
Kerry Miller
ParticipantIs there a way to hide a particular Accommodation Type from appearing anywhere on the site (search results, accommodation list, etc)? I have one room that I use as a back up sometimes. I’d like to be able to make actual bookings for it, but I absolutely do not want a guest to be able to book it on our website. I know I could just create a Booking Rule that would block it from ever being booked, but I don’t even want it to appear in our list of accommodation options either. I’m sure there’s an easy way to do this, I’m just not sure what it is! Thanks
September 10, 2021 at 1:09 am #1183076Andre Flores
ModeratorHello Kerry,
You may simply set the accommodation type in question visibility to “Private” in your dashboard, so only administrator or other logged in users could see that accommodation type: https://prnt.sc/1rp01jt. This will allow an administrator to book that accommodation type without guests being able to view it on the website.
Regards,
AndreSeptember 13, 2021 at 1:32 pm #1184626Kerry Miller
ParticipantHi Andre, unfortunately it seems making the accommodation type “Private” removes it from the back end’s calendar and the admin’s search results. So that is not a good solution for me. Any other ideas?
September 17, 2021 at 12:34 am #1186894Andre Flores
ModeratorHello Kerry,
Thank you for getting back to me. Yes, accommodations are not being displayed in the calendar when switching the accommodation type to Private mode indeed.
In this case you may try hiding the accommodation type in question on your website via CSS. Add the following code under Appearance ->Customize ->Additional CSS:.mphb-room-type.post-XXX {
display: none;
}Where “XXX” is the accommodation type ID. This will hide it everywhere on the website, however, you will still be able to book it in the back-end.
Regards,
AndreSeptember 17, 2021 at 8:19 am #1187290Kerry Miller
ParticipantThank you Andre, that’s exactly what I needed! Much appreciated.
September 21, 2021 at 4:39 am #1188732Andre Flores
ModeratorYou are always welcome. It would be very much appreciated if you share your positive feedback about the Hotel Booking plugin at: https://www.trustpilot.com/evaluate/www.getmotopress.com.
Thank you in advance!
January 20, 2025 at 4:24 am #1716579shunsuke sakuma
ParticipantHi, I tried following the instructions in this post, and it succeeded. However, when I search for room availability by the calendar, the room hidden comes up and is available to reserve even though I have set a password. Do you have any solution to hide it from search result.
Thank you
Shun
January 22, 2025 at 7:08 am #1717739J. Davis
KeymasterYou can try using the CSS code to hide the property on the front end. Please check a reply from Andre https://motopress.com/forums/topic/hide-certain-accommodation-type-from-appearing-in-search/#post-1186894
- AuthorPosts
- You must be logged in to reply to this topic.