Support

Account

Home Forums Front-end Issues Existing front end form

Helping

Existing front end form

    • guudje

    • January 12, 2019 at 6:48 am

    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.

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.