I've seen that many sites have a dedicated page for a sitemap, not just an .xml file.
For example, https://www.casinos.de/sitemap/ They're using Yoast SEO and sitemap.xml is also available, but how can you embed the whole sitemap in a page like this?
Is there a function or just a file_get_contents()
?
file_get_contents()
won’t work, as using that on an XML file will not create a list of links. WordPress haswp_list_pages()
which will create a list of pages, but only pages, and that’s all. Whether Yoast has this feature is something you would need to ask its developer.