Home › Forums › Front-end Issues › Front End Form and register_field_group not working together › Reply To: Front End Form and register_field_group not working together
You are right @elliot, I left out some bits of information.
I am using the form on the Buddypress user profile page so users can add more info about themselves. I have two calls of register_field_group() in my functions.php – one for the edit view of the user profile and one for the public view of the profile. Basically a user edits the profile, previews it and can hit a little checkbox below to “publish the profile” which internally restricts the user from changing the profile again (client wants to review user profiles so this is necessary).
So I have these two field_groups that I would like to display in two different locations of the user profile in the theme. Omitting ‘field_groups’ will render both field groups at both locations of the form as I have these location rules in my registration calls:
...
'location' => array (
array (
array (
'param' => 'ef_user',
'operator' => '==',
'value' => 'all',
'order_no' => 0,
'group_no' => 0,
),
),
),
...
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.