I am trying to:
I have an "retiros" CPT that has two custom fields: "date start" and "date end".
But, inside this event I have some post that have a normal interval (5 June-12 June), but some of them are active all days between 1 January-31 December (are all days available).
There is a way to filter via data and show all "retiros" inside a data range (between data stard and data end) and that makes me appears too the "all year" retiros?
Thanks in advance.
Hello,
It is possible to create a view filter by the date range, for example you can create a view, with two custom field filters:
1) Select items with field:
"date start" is a UNSIGNED lower than TODAY()
2) Select items with field:
"date end" is a UNSIGNED greater than TODAY()
see our document:
https://toolset.com/documentation/user-guides/date-filters/
I think I don't explain well.
My customer can enter two data: Start and end data for their events called "retiros".
Then, in frontend, I've created a view where users (not customers) can filter to find "retiros" by data.
If I use your indications, it won't makes what I want.
As I told you before, I have some events (or "retiros") that have delimited datas, for example, starts 10 June and ends 17 June and another ones that repeats all the year, each day or each week, and we use start data 1 January and end data 31st December.
I need to know if there is a way, if some user wants search in frontend filter an event between 5 June to 20 June it appears the first example event (10 to 17th June) and all the events that belongs to 1st January to 31st December, case the filter search this data range and show all events that accomplish that data range.
I think that with views filters is not possible, cause views filter choose only two values.
I know how to do the filter from 10 to 17th, but the annual events is my problem.
How do you setup these custom fields value:
repeats all the year, each day or each week, and we use start data 1 January and end data 31st December.
There isn't such a exact same custom "all year" field within Types plugin, as a workaround, you can setup a repeating field group, display it in the "retiros" post.
so when you edit a single "retiros" post, you can add multiple "date range", for example:
1st January 2017 to 31st December 2017
1st January 2018 to 31st December 2018
1st January 2019 to 31st December 2019
...
See our document:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/