Home Forums Front-end Issues Existing front end form


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.

    • guudje

    • January 23, 2019 at 8:59 am

    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)

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.