Support

Account

Home Forums Front-end Issues Existing front end form

Solving

Existing front end form

  • I use WP Rentals and I would like to add Custom Fields to both the user profile and the listings.
    This theme has extensive front end forms for both the user as the listing.
    In the user profile I added this code:

    <?php acf_form(array(
    ‘post_id’ => ‘user_’.$current_user->ID,
    ‘field_groups’ => array(8146),
    ‘form’ => false,
    ));

    ?>
    And I put the <?php acf_form_head(); ?> above the get_header but nothing gets saved. When I add something in the fields in the backend it isn’t updated. The fields in the front end form stay empty. When I put the ‘form’=> true, the content gets saved to the form but not to the post.
    Can somebody help me?

  • When adding fields to an existing form the call to acf_form() must happen inside of the other form’s <form ...></form> tags.

  • These tags are not there. Somebody succeeded however to solve this in an other way. Thanks for responding.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Existing front end form’ is closed to new replies.