Hi, my PHP skills aren’t that great so I thought let’s ask around here.
I have a problem, I need to change the wp_list_pages output in order to trigger a javascript function.
Right now I’m using these kind of links:
<li><a href="<?php bloginfo('url'); ?>" onclick="scrollContent(0)" >Home</a></li>
<li><a href="<?php bloginfo('url'); ?>/recreeer" onclick="scrollContent(1)">Recreëer</a></li>
<li><a href="<?php bloginfo('url'); ?>/ervaar" onclick="scrollContent(2)">Ervaar</a></li>
How can I make wp_list_pages output the extra onclick with a counter ( or just the page ID)?
It would mean a great relief for me if someone could come up with a solution.
cheers!