Support

Account

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.