Problem:
The customer wanted to prevent a user from creating more than one Profile post, while still allowing the same user to create multiple Event posts.
Solution:
There is no single setting for this, but it can be controlled per post type. The recommended approach was to show the Create Profile form only when the logged-in user does not already have a Profile post. This was done by using a View filtered by post author equals the logged-in user, and placing the profile creation form inside that View’s loop template. This limits Profiles to one per user without affecting Event creation.
Relevant Documentation:
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/
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.
Ce sujet est une subdivision de https://toolset.com/fr/forums/topic/therapy-site/
Ce sujet contient 1 reply, a 0 voix.
Dernière mise à jour par Il y a 2 weeks.
Assisté par: Christopher Amirian.