Home Forums General Issues Possible to restrict user to just ONE custom entry?


Possible to restrict user to just ONE custom entry?

    • codynew

    • October 8, 2013 at 6:51 am


    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!

    • Elliot

    • October 9, 2013 at 9:41 am

    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


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.