<?php $anchor = strtolower(str_replace(array(' ', ':'), array('-', ''), get_sub_field('title'))); ?> <a href="#<?php echo $anchor; ?>"><?php the_sub_field('title'); ?></a> <h2 id="<?php echo $anchor; ?>" class="headline"><?php the_sub_field('title'); ?></h2>
Leave a Reply