A single page shares a lot with the pages we've created before; but there are reasons as to why you should consider using or creating a single page instead of a page you create in the sitemap:
Just like the name says, a single page is located in only one place. It will only have one address (for example,
/login
) and therefore only appear once in your whole site.If you have some custom code that is needed in one particular spot, use a single page to avoid any kind of redundancy.
The code of a single page is usually not part of your theme; they are either part of the site, a package, or the core. This makes sense because you don't want to lose the ability to log in to your site just because you remove a theme.
The best example of a single page is probably the dashboard. There are tons of screens where you can create users, change settings, and much more. Would it make sense to have the same screen to create a user in different places? Hardly; and that's why they are all...