Skip Navigation

[Resolved] limit submission from post form

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by FuChan 4 years, 7 months ago.

Author
Posts
#1576707

I create a post form to let authors submit their posts from frontend. I have 2 questions:
1. How can I limit the submissions to total 3 posts for each author?
2. The author can edit their posts. Can I limit the editing to be only one time for each day?

Thanks in advance for your help.

#1576875

One way is to create a View and list all those posts by the current logged in user.
Then add the Form to add new posts in the "No items found" section of your View, to display it only if there are no results (the user hasn't yet submitted any post).

Or, if you need more control over the number of posts, you can use this Custom ShortCode to hide/show the form if there is a certain amount of posts present (or not):
hidden link

To control the edit forms, you can use Access rules, this is enough, as you cannot add "new "posts with edit forms and hence controlling the current user can edit only his own posts with forms, is enough.
Limiting only one a day would be done with a similar code as above, where instead of posts, you count days, or minutes (time)

But that would require custom code that we cannot provide here in the forum.

#1582339

My issue is resolved now. Thank you!