I have a CPT 'User Will' and I want to go to a new page with an edit form to edit 'User Will' however I want to edit a the first User Will record belonging to that particular logged-in user...How can I achieve this please
Hello. Thank you for contacting the Toolset support.
Well - when you say the first 'User Will' you want to edit - is there any identification that XYZ is the first "USER WILL" belongs to logged in user or there will be only one 'User Will' belongs to each loggedin user?
Hi Minesh...Good to hear from you...hope you're well...
Yes I have built the site so the user can only create 1 'USER WILL' CPT so I need to go to a new page or template and edit their User Will record
Hope that makes sense...
At the minute the only way I can edit the USER WILL record is via the page of that particular post... The other way is by creating a view list with the record in the list and an edit link next to it..
But what is the way to identify that this "User WILL" belongs to the loggein user? Did you set the logggedin user as the "User WILL" post author so we can identify that this "User WILL" belongs to this user?
Can you also tell me where exactly you want to add the Edit form - on which page? Did you created the "User WILL" edit form?
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Yes exactly...So the logged in user can only create one User Will and it can be found by 1st record of CPT created by current logged in user..
So I have created a page 'section-complete' and on that page I have a CRED form to edit the User will CPT..I just need it to edit the logged in users CPT
That's great and seems to be working...the final part of my problem is to redirect to the User Will post page after submitting the form... The form only allows me to redirect to specific named pages rather than the unique dynamic url e.g. your domain.com/user-will/my-user-will
Many thanks Minesh...nearly there
G
New threads created by Minesh and linked to this one are listed below:
Glad to know that the solution I shared help you to resolve your issue. I split the ticket with your new question.
This will help other users searching on the forum as well as help us to write correct resolution summary to which support request originally belongs to. Please feel free to close this ticket and we will continue with the split ticket.