Skip Navigation

[Resolved] I need to create a view that shows the content based on a custom date field

This support ticket is created 5 years, 11 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1159729

I'm developing a site with the ability to show a different menu every day, this menu is managed by custom post type and custom fields based on the date.

How can I create a page that updates automatically based on the date field of the multiple menus (28 one per day)?

many thanks
Aldo

#1159957

Hi, if each menu is only visible once, you can set up a View of Menus that is filtered by a custom date field. In the Query Filter, the custom field should be an UNSIGNED value, between TODAY and FUTURE_DAY (1). Then in the loop, display information about the matching menu.

However, if you want to show the same menus repeating each month, then it's more complicated and may require custom code. I can help with that, but I need to know what happens on days 29, 30, and 31.

https://toolset.com/documentation/user-guides/date-filters/