I have the following code the generates the sitemap.
wp_list_pages( array( 'exclude' => '5', 'sort_column' => 'ID', 'title_li' => '' ) );
It generates a hierarchy of my Pages but it also has links to my parent pages.
check the screenshot above. I only need the title for all the parents not the link.
Please help. Thanks.