Skip Navigation

[Resolved] Display today's images in post

This support ticket is created 5 years, 10 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1202173

Tell us what you are trying to do?
I need a daily custom post to display 4-6 images of a certain type or category (food, today's special)
Is there a way images can be uploaded from a mobile device and automatically appear as the latest version on the site?
In practice this is for a restaurant that has 4-6 dishes (starter to desert) that are different every day. The restaurant staff takes picture of the dishes every day and uploads them to the site , ideally from a mobile device.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1202794

Hello,

I assume you are going to setup a website for one restaurant.

You can try these:
1) create two custom post types:
- dishes
- daily-picture (with a custom image field)

2) Setup one-to-many relationship between "dishes" and "daily-picture"
https://toolset.com/documentation/post-relationships/

3) create a post view "today's images":
- Query "daily-picture" posts,
- filter by:
Select posts whose
Published date is equal to: day:CURRENT_ONE()
https://toolset.com/documentation/user-guides/filtering-views-query-by-date/
- In section "Loop Editor", Display:
a) the custom image field
b) parent "dish" post information
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent

#1203143

OK, thanks for that.
I will follow your suggestion closely but I already have set up roughly the same thing.
Any ideas on my other point ie uploading to custom posts from mobile devices?
Thanks

#1203484

I assume you are going to let your user to submit the new images in wordpress front-end.

If it is, you can setup a Toolset form for creating child "daily-picture" post
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

and in the single "dishes" post, display a child form link, see above document, section "Creating forms when a parent post is preselected".

And Toolset form should work just fine in mobile device too.