Skip Navigation

[Resolved] Limit the amount of posts an user can create

This thread is resolved. Here is a description of the problem and solution.

Problem:
How can I limit the amount of posts an user can create on the Site?

Solution:
That's only possible with custom code
https://toolset.com/forums/topic/hello-i-need-to-make-it-so-that-i-can-limit-the-number-of-publications-of-users/#post-617768

This support ticket is created 6 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by Beda 6 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#617640

Hello. I need to make it so that I can limit the number of publications of users daily, that is, so that a particular user can publish a post of a certain type of post only a certain number of times in a certain period of time, for example 6 publications in 24 hours, and that the next day after 24 hours the user can again post new 6 posts. Tell me please how can I do this? I found this topic on the forum, but I do not know how he can help me ...

#617641

I specify, publish the posts on my site users through the frontend, and I downloaded the plug-in imit posts, it works and does not allow posting posts via the backend if I put certain conditions, but at the same time in the frontend the publication is further resolved .... please help ...

#617768

This is not possible natively with Toolset.

The Plugin you mention I have never used, it seems thou it applies to the backend only, as per your description, and hence it won't work with Toolset CRED.

You could apply some custom code.
So, for example, you can count the result of get_posts(), and create a conditional HTML that shows the button to create the post (link to CRED Form, or CRED FOrm itself), only if the count of posts is lower than a certain amount.

Examples:
https://toolset.com/de/forums/topic/limit-the-number-of-posts-submitted-by-registered-customers/#post-368894

This could be reset with a CRON or similar, every amount of seconds you wish.

But that would require elaborated custom code that we cannot provide as such here.
If you need professional help with the Custom code I can suggest the contractor's list:
https://toolset.com/contractors/