Home Forums Front-end Issues Acf_form with relations


Acf_form with relations

  • Hi, I have ACF PRO and have an issue with the function acf_form() in a front end to let people create their own post (picture 1).

    I have a field_group that have a relation type field and when I’m using the acf_form() in my custom page, in the front end, there is not data loading to select but in the back office, when im clicking on add new post, there are some data.(Picture 2)

    Here is how I’m using acf_form()

    										'post_id'       => 'new_post',
    										'post_title' 	=> true,
    										'new_post'      => array(
    											'post_type'     => 'enquete',
    											'post_status'   => 'publish'
    										'field_groups'        => array('group_647ea6f53917c'),
    										'submit_value'  => 'Créer l\'enquête',
    										'updated_message' => 'Enquête ajoutée avec succès',

    Thanks for helping.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.