Skip Navigation

[Resolved] Date searching

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2628897

I want to create an inquiry form that asks for dates to book a house, then have the owner of the site approve the inquiry, and then when anyone is searching for those particular dates not have the listing appear for that particular house in search results. is that even possible?

#2629101

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - you can obviously have post type "Houses" and then custom date field that is assigned to display with "Houses" post type and then you can create a post form that will allow the user to create new house entry and when you create the post form you can select the post status should be "Pending Review".

Here is the doc that should you follow to create new post form:
- https://toolset.com/course-lesson/front-end-forms-for-adding-content/

Later - you can create a view to display the posts based on the search date and compare the booking date and it should display only houses where booking date does not fall in the search date range.

I suggest you should create a test site on our free platform http://www.discover-wp.com:
- https://discover-wp.com/site-templates/

You can create a test site using any of our reference site we offer and learn about how you can setup form and views. Maybe you can check the following reference site:
- https://discover-wp.com/site-types/cb-properties-real-estate-site/

You can also follow any of the following courses:
- https://toolset.com/course/
- https://toolset.com/course/custom-types-in-wordpress/

If you require further help, we are here to help you out.