Problem: I would like to limit the number of posts a single User can create with a Form. The maximum number of posts allowed should be only one.
Solution: The easiest solution here is to use a View of these posts filtered by post author, where the author is the same as the current logged-in User. If any results are found, show nothing in the loop. If no results are found, show the Form by replacing the text in the "No items found" block with the corresponding Form shortcode or Form block.
Relevant Documentation:
See the first FAQ here - https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/#how-do-i-prevent-users-from-creating-more-than-one-contractor-post
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.
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 2 réponses, has 2 voix.
Last updated by davidR-12 Il y a 4 années.
Assisted by: Christian Cox.