Hi
I want to use ACF to create a directory of people.
I’d like each user to use the frontend/admin area to add just ONE custom field type entry (ie their own profile).
Is it possible to restrict the user to just the one entry? Where after they have created it, can only modify, edit or delete it.
Thanks in advance!
Hi @codynew
definitely. This is how I would do it.
1. Create a new page template in your theme called ‘edit-profile.php’, then create a page in the CMS and select this template.
2. Write some logic in that template that looks at the current logged in user and uses that $user_id in the acf_form parameters to show the form for only this user.
Good luck
Thanks
E