Skip Navigation

[Resolved] Search for a period between two dates

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 0.23 hours from now. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by 直子 村上 7 years, 2 months ago.

Assisted by: Ghennadi.

Author
Posts
#569902

The custom post "TestPost" has two date fields, "Start" and "End".

I would like to search on the condition that it applies to the period of "start" and "end", how do you do?

For example…

------- All TestPosts -------
A) [Start] 17/12/31 [End] 18/02/19
B) [Start] 15/03/05 [End] 16/08/03
C) [Start] 17/10/10 [End] 17/12/12

------- Cace1 -------
[Start] 14/01/01 [End] 20/12/12
→ A,B and C are OK!

------- Cace2 -------
[Start] 17/10/01 [End] 18/03/12
→ B and C are OK!

testsite
hidden link

#570100
views_screenshot.png

Hello,
I uploaded an image that will show you how to setup a view with parametric search between two dates.
You need to set:
1. Fields name to number
2. Start date: greater than
3. End date: lower than

#571251

Thank you so much!
I succeeded!