Skip Navigation

[Resolved] Is it possible to limit the number of posts per type per user?

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

Problem:
Is it possible to limit the number of posts per type per user?

Solution:
You should make the current logged in user as the post author to create one teacher profile and one school profile and use the technique given with the shared Doc:

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/is-it-possible-to-limit-the-number-of-posts-per-type-per-user/#post-1231513

Relevant Documentation:
=> 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 support ticket is created 5 years, 8 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
- 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 2 replies, has 2 voices.

Last updated by ruiC 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1231461

I am trying is to limit number of posts per type per user.

I have 2 types of users (yoga teachers and yoga school managers, who are sometimes both). I bundled them into a single "Member" custom role. Members can be upgraded to "Patrons", i.e. paying members.

I would like Members (both teachers and school managers) to be able to create teacher profiles and school profiles (two custom post types) but ONLY 1 OF EACH. I would also like to limit Members to 1 Event (yet another custom post type), while Patrons could publish unlimited ones.

I read you docs but couldn't find the answer. Site is not properly online yet.

Thanks

#1231513

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - you should make the current logged in user as the post author to create one teacher profile and one school profile and use the following technique:
=> 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

#1231514

My issue is resolved now. Thank you!