• How do I link to a page (e.g., archives.php) that is located within a theme other than the one currently being used?

    I would like to create a single generic ‘archives’ page and place it inside of one theme only, but link to it from all available themes, whether the user is using that theme or not. So that way, whenever a user clicks on the ‘archives’ link, it will take them to the ‘archives’ page that is located in a specific theme, regardless of the theme they are using.

    Perhaps an easier way to ask this question: Is there a way to indicate both “page id” AND “wp theme” within an internal wordpress link?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You should be able to achieve this will conditional tags:

    http://codex.wordpress.org/Conditional_Tags

    I don’t think WP would recognize any template file (and archives.php is a template file!) outside of the theme system.

    Thread Starter Jeff Starr

    (@specialk)

    Actually, the page (call it unknown.php) isn’t an archive page at all, I was just using that as an example. Further, the page (unknown.php) will in fact be located within a theme directory.

    To clarify, I am trying to link to ‘unknown.php’, which is located in some ‘themeA’ (for example), from several other themes. Thus, themeA, themeB, and themeC will all have links to the page ‘unknown.php’, which is located exclusively in themeA.

    How do I do that? I hope there is a way..

    (if you think conditional tags may work for this, then please, by all means provide an example;)

    So what is this unknown.php? Not understanding what do you want to do makes quite difficult to figure out a solution. (Not that I am sure there is one…)
    A “theme” cannot have a link to anything – only certain files of a theme. I just mention this to show that vague theoretical questions get similar answers 🙂

    Thread Starter Jeff Starr

    (@specialk)

    Okay, one last try:

    How do I link from any page in themeA to a specific page in themeB?

    It doesn’t get any clearer than that.

    Nonetheless, in case that is still too abstract:

    How do I link from my sidebar in theme ‘Taco’ to my bio page in theme ‘Cracker’? (just an example)

    Sidebar is a template file (sidebar.php). “bio” is not a template file.
    If you mean you want to link to a Page created via the admin > Write > Write Page interface… I don’t see what the question is.

    Or,if “bio.php” is a physical file somewhere on your server (even in another theme) I don’t know what do you expect to happen when linked to it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link to page in a different theme’ is closed to new replies.