Support

Account

Home Forums Front-end Issues acf_form() not rendering certain fields

Helping

acf_form() not rendering certain fields

  • I have a run-of-the-mill ACF field group containing many text fields, a file upload field and a select. I’m trying to render an acf_form() in the frontend for users to submit posts.

    acf_form(array(
        'id' => 'reservierung',
        'post_id'       => 'new_post',
        'new_post'      => array(
            'post_type'     => 'reservierung',
            'post_status'   => 'publish'
        ),
        'fields' => array(
    
            "field_5ed4ed6918be4",
            "field_5ed51d4e4a872",
            "field_5ed4ed1d18bde",
            "field_5f5e061260644",
            "field_5ed4eee418be7",
            "field_5ed4ed4318be1",
            "field_5ed4ed5418be2",
            "field_5ed4ed6018be3",
            "field_5ed5025018be9",
    
        ),
        'post_content' => false,
        'uploader' => 'basic',
        'submit_value'  => 'Reservierung abschicken',
        'return' => <redacted>
    ));

    Some of the text fields are missing in the front-end.

    The missing fields have names like telefon,adresse1,adresse2`. Fields before and after those fields render fine (e.g. the address fields are missing, but the zip code and locality fields show up fine.)

    What I have tried:
    – Renamed the missing fields
    – Reordered the missing fields in the field group
    – Created new fields – they are missing as well
    – Checked the fields in the backend to make sure they don’t have some weird settings that might prevent them from rendering – they don’t
    – Specified the field group by id in acf_form()
    – Specified individual field IDs in acf_form – the problem fields are not rendered
    – Inspected the source code to make sure it’s not that the fields are output but then not displayed for some reason – nope, they are missing from the source code

    What am I missing?

    Using 5.6.0.

  • Using Pro 5.6.0 btw. Not sure if I should post this in the PRO section instead.

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

You must be logged in to reply to this topic.