Replies: 0
Hello, thank you for your great work.
I try to put advanced custom fields in accordeon codes, but it seems, the div´s are closing in a wrong way, as you can see here
<?php if( get_field('akkordeon') ): ?>
<?php echo do_shortcode('[accordion clicktoclose="true"]'); ?>
<?php if( have_rows('reihen') ): ?>
<?php while(has_sub_field('reihen')): ?>
<?php
$akkordeontitelvar = get_sub_field('akkordeontitel');
echo do_shortcode('[accordion-item title="' . $akkordeontitelvar . '"] ')?>
<div class="columns">
<!-- .content-->
</div>
<!-- .columns -->
<?php echo do_shortcode('[/accordion-item] ')?>
<?php endwhile; ?>
<?php endif; ?>
<?php echo do_shortcode('[/accordion] ')?>
<?php endif; ?>
What I am doing wrong, can you help me, please?
Thank you in advance
ll.