Skip Navigation

[Closed] How do I prevent users from creating more than one post using a Post Form?

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 3 replies, has 2 voices.

Last updated by Minesh 1 year, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2674879

Tell us what you are trying to do?
Allow users who have an account to add user profile details via a "user details" CPT.

Is there any documentation that you are following?
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/

Specifically, I need to prevent a user from adding a "user details" CPT more than once. I was following these instructions, but they seem incomplete: https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/#how-do-i-prevent-users-from-creating-more-than-one-contractor-post

After step 3, then what? Where do I add this view, and how does that stop the user from creating another "user details" CPT?

#2675027

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

- Have you created the page that you want to display from where user can add the profile?
- Have you setup the form and view?

If yes, can you please share URL where you added the view and where I can see the form as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

#2675239

Hi Minesh.

Yes, I've begun setting everything up, but before I grant access to a live, active site, can you perhaps explain if there are missing steps in the tutorial? This might be easier if there was a full list of instructions and an example, like with some other tutorials. If the only way to do this is by granting access, I will, but I think I may just be missing a few steps.

#2675381

Minesh
Supporter

Languages: English (English )

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

The steps are those which you will require to follow.

As the view will try to find the posts created by current loggedin user and if there are no posts found then it will show the post form.

With the Doc there is whole implementation workflow shown with all required information:
- https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/#implementation

If you still not able to achieve what you need then I will have to review your current setup and you have to tell me at what page you want what function and what you have currently and please share admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

The topic ‘[Closed] How do I prevent users from creating more than one post using a Post Form?’ is closed to new replies.