Support

Account

Home Forums Front-end Issues Load fields in front end form Reply To: Load fields in front end form

  • Hi @wullaski

    This is possible by running the ACF location rule match functionality based on the current screen.

    something like this should work:

    
    <?php 
    
    // get field groups
    $filter = array(
    	'post_type' => 'post',
    	'post_id' => 0
    );
    $field_groups = array();
    $options['field_groups'] = apply_filters( 'acf/location/match_field_groups', $field_groups, $filter );
    
    ?>
    

    Note: this is based of the api.php -> acf_form function and has not been tested