Home › Forums › General Issues › Replace WordPress native fields with values from ACF form › Reply To: Replace WordPress native fields with values from ACF form
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:
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!
© 2022 Advanced Custom Fields.