Did you get this resolved? I’m trying to do something similar.. like this and I am totally lost with the needed syntax.
<div>[a4e_spoiler title=”$get_sub_field_spoiler_title” class=”a4e-custom-spoiler”]
<?php the_sub_field(‘spoiler_content’); ?>
[/a4e_spoiler]</div>