Hello,
I would like to create a daily menu system for a school canteen. I thought a plugin existed but unfortunately not. So since I own Toolset I thought it would be possible.
Basically in the backend I would need the possibility to add daily menus for the canteen (starter, main course, dessert) and to display on the home page only the menu of the day. Therefore, a date conditional is needed.
Honestly I don't know where to start
Hello,
In my opinion, it is possible with Toolset plugins, for example, you can try these:
1) Setup two custom post types:
- daily-menu
- dish
2) Setup many-to-many relationship between "daily-menu" and "dish"
3) Every day, website admin, create a "daily-menu" post, and relate it with other "dish" posts
4) In the home page, create a nested views:
a) Parent post view:
- Query the "daily-menu" posts
- Order by post date descending
- Limit one post
- In view's loop, display below child post view
b) Child post view
- Query "dish" posts
- Filter by post type relationship between "daily-menu" and "dish"
- In view's loop, display "dish" post information
In your website home page, display above parent post view.
More help:
https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items