Creating A Site Map

Please not that you need to use WordPress Pages for this work. First thing you need to do is download this plugin. The Code will not work without it.

Log into WordPress, and click Pages » Add New.

Now name the page. I named mine Site Map, and put the page parent to Domain. You do not need to have a page parent on yours.

Add the code below into the page content. Make sure you select HTML not Visual editor because it will not work.
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>

Now click Publish » View Page. You should something similar to my site map.

Post to Twitter