Altered version of https://wordpress.org/plugins/visual-sitemap/