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?
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
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
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.