I’m writing a theme and an trying to generate a link to a generic archives page (i.e. archives.php). By default this is http://www.example.com/archives/ when you have pretty links enabled.
The problem being that a user can change this URL under permalink options. So how do I get that value to dynamically generate a link to the archives page should a user decide to change that permalink option? Obviously, if a user has chosen to change the URL at which archives can be accessed I want the theme to respect that.
Any ideas? I’m coming up blank, as are searches.