I'm struggle to find an answer for this so was hoping to hear from the community.
$('.slick-dots button').each(function(index) {
$(this).html('<?php echo $headings[0]; ?>')
});
Within the above .each function, I am trying to increase $headings[0] by one on each loop.
Hopefully I'm missing something pretty simple and I've not gone down an impossible route?