Support

Account

Home Forums General Issues has_sub_field won't work after POST request Reply To: has_sub_field won't work after POST request

  • Thanks for the reply!

    The $post and its ID are actually fine, I checked them. Otherwise the get_field function wouldn’t work as well.

    So at first everything works, you can see the echoed ‘description_titel’ and then a few times ‘Schritt’ because of the has_sub_field-loop.

    But if you press the button and the page reloads, you only see the echoed ‘description_titel’ which means that get_field works but has_sub_field doesn’t. And that really confuses me.

    Let’s say we can’t make it work this way, which other possibilities do I have to get the desired fields?

    P.S Maybe it is a version conflict?
    ACF version: 5.6.8
    WP version: 4.9.8