Skip Navigation

[Resolved] Limit posts by user

This support ticket is created 3 years 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by Minesh 3 years ago.

Assisted by: Minesh.

Author
Posts
#2283147

Hi, i would like to know how i can decide how many posts a user can hav e on my website
I've seen a ticket about it but i dont really understand how to do it
Here is the link
https://toolset.com/forums/topic/restrict-number-of-posts-per-user/
I don't know how to use the cred api
I don't know how to use conditionnal fields on users profiles
Is there any documentation that can help me to understand this process ?

Thanks

#2283707

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

First of all, I will require to understand the flow on your site.
- From where user will submit the post
- what users you want to restrict with how many posts per user for what post type

Can you please share all those required details and once I will review that I will be able to guide you in the right direction.

#2284109

Users can submit posts from the "annonces" post type
I'want users to have limits based on their roles
i've created custom roles for that purpose
The "author" role will be limited to 1 post
The others roles are "author (2 posts, 3 posts, 4 posts)"
Their limit have to be the number attached to the role
Hope it's clear enough

#2285527

hi, I'm still waiting for and answer please

#2285549

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Users can submit posts from the "annonces" post type
==>
You mean user will submit the posts from backend or using the Toolset form from Frontend?

#2286151

they can submit from the front-end
now the directory is still under developpement mode because i'm waiting to have that function before launching it

#2286475

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please check the following related ticket where I mentioned the solution that displays the Toolset form based on the role and number of posts:
=> https://toolset.com/forums/topic/limit-the-number-of-posts-submitted-by-registered-customers-ii/

You should adjust the post types and role slug as required with the solution shared with the above link.

If you still require assistance, please share admin access details and problem URL where you want to display the form based on the different roles.

I have set the next reply to private which means only you and I have access to it.