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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.