Home › Forums › General Issues › Replace WordPress native fields with values from ACF form › Reply To: Replace WordPress native fields with values from ACF form
Hi Telion,
If you create some additional fields, you can add them to the form.
For example, if you create a field and select the taxonomy option, you can then specify categories as the taxonomy.
When you call the form on your page, you can then include either individual fields OR you can call in the field group:
acf_form(array(
'field_groups' => array(320),
));
The group ID comes from URL when you’re setting up the additional fields:
wp-admin/post.php?post=320&action=edit
If you want certain fields only, you can use the below example:
acf_form(array(
'fields' => array(
'field_5a1e82b766ac6',
'field_595b5f02d4a72',
),
));
Just change the field keys to the ones you need.
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.