I am getting the list of Pages and Subpages by wp_list_pages()
.
I want to change the parent <a>
and <ul>
child. I found a solution here in this WPSE thread.
But It only changes the <ul>
.
How can I add classes/attributes to the both (<a>
and <ul>
) at once.