as the title states, I am trying to remove the <li></li>
tags from the list that gets generated with wp_list_pages()
.
My thinking is to somehow run a for/foreach loop through the menu items and remove the <li></li>
tags using str_replace()
, but first I would need to parse the returned list into an array or something to traverse through the list items...
Any ideas on how I can accomplish that? or maybe a better way of going about it?
Thanx in advance!