Skip to content
Advertisement

Subscript in PHP and Loops

I am using ACF and PHP to create a WordPress website currently working through basically a loop and looking to connect a subscript and a tag by an ID that needs to have a counter increment on it so that the ID can change from #footnote-top-1 to #footnote-top-2, #footnote-top-3, etc and have the link also change. , . If so how?

Preference to using PHP or CSS.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis felis ante, maximus semper malesuada vel, bibendum iaculis urna. Fusce bibendum, quam eget mollis euismod, nisl ipsum dapibus nibh, eget ultricies velit ipsum in ex. Nulla pulvinar consequat suscipit. Phasellus a bibendum nulla. Integer convallis ornare dictum. Quisque sed congue metus, ac tincidunt ex. Nulla libero nulla, aliquet vitae risus eu <sup class="footnote" id="footnot-top-1"><a href="#footnohte-bottom-1">1</a></sup> , rhoncus interdum ex. Vestibulum nisi nisl, sollicitudin tincidunt malesuada ut, blandit eu mi. Nam nec aliquet ante.

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement