Tell us what you are trying to do?
I am working on a directory, and want to have a form that a user can fill out. Information would be displayed in a view with all similar users, and also on a detail profile page. The user would fill out a front end form one time to create their profile listing. They would have the ability to edit their profile listing via a link in their backend account page. I do not want the user login/email/password included, so prefer that this is not a user form.
I see how to build the CPT, custom fields, and form.
How do I have it so that they fill out the form one time, and then after that all they do is edit the form? I tried placing the form on their account page, but when submitted, it would be preferred that the form is no longer visible and only the edit link is there.
What is the link to your site?
development site - not visible yet.
Hello,
You can try these:
1) Create a custom post type "user-profile"
2) Setup a post form for creating new "user-profile" post
3) Setup a post form for editing "user-profile" post
4) Setup the "detail profile" page, display a post view:
- Query "user-profile" posts
- Display only one item
- Filter by post author is same logged-in user
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-author/
- In view's loop, display the editing form link of step 3)
https://toolset.com/course-lesson/front-end-forms-for-editing-content/
- If there isn't any item found, within shortcode [wpv-no-items-found]...[/wpv-no-items-found], display the post form shortcode of step 2), so user can create only one "user-profile" post
Hello Luo,
I do not follow #4 in your reply. How is the shortcode [wpv-no-items-found]...[/wpv-no-items-found] entered? And where is it entered? What is the form shortcode?
Thank you.
I was able to find this post with a reference to the shortcode - https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form
I also see the field in the Loop Template (No Items Found Text), and was able to insert the form shortcode to make it work.
I would like to keep this post open for a couple of days as I work on this. I may have other questions.
Thank you.
I have marked this thread as "Waiting for feedback" status, please update here if you still need assistance for it, thanks
This works!
My issue is resolved now. Thank you!