Hello. I'm trying to create a site map, only I don't want to update it every time when adding another section. My site map is similar to my navigation menu, so I want somehow when adding a section to navigation menu, automatically add it to site map. I have never seen how the site maps work, but I'm 99% sure that they are controlled automatically. So here's my code:
and I want my site map like this. I want to remove id="primary-nav" (that's the only place where it is) and remove <a href="#">...</a> where class="menuparent".
and finally HTML, something like this:
<li><a href="http://www.123.lv/123.php?sc=aboutme">About me</a></li>
<li class="menuparent"><a href="#">My marks</a>
and of course I need to get rid from JS and CSS when I put this code into Site map section
Can you help me? How can I achieve this? I suppose that I can do it with preg_replace maybe, but I don't know if it's the right way...