Skip Navigation

[Resolved] Parametric Views Search Filter by date

This support ticket is created 4 years, 9 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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1561715
filters.png

I have a bunch of category filters on my view and I also need to include a post year on there. Is there a built in way or do you have a doc explaining how to get the Post date as a views Filter?

#1561897

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nicholas,

Thank you for getting in touch.

In order to have the year as a filterable field, you must have a corresponding year custom field on the backend. So on the posts themselves you should also have a field where the user can select the year.

The reason is because if you have a datepicker then you're not able to filter by the year only but rather you must filter by the entire date itself.

Please let me know if this clarifies the situation for you.
Thanks,
Shane