Support » Themes and Templates » multiple single page templates for the same post

  • Website:

    So I have a photo blog that I am in the process of putting up. I have a single post per page, use permalinks, and have prev and next buttons to go from picture to pictures. As I understand it, the single page template is used for any posts other than the main page (so for instance, when you hit the prev button off of index.php, it goes to the previous post but uses the single page template).

    I don’t have a single page template. Instead, I have a stripped down version of index.html without comments, sidebars, or footers.

    What I want to do is have two seperate views of a single post, one which uses my index.php, and another that displays more detailed information, such as image details and comments when the user clicks on “read more” (bottom right of image).

    So I’d like to change the HREF for the “read more” to be like and then have detail.php be used as the template for the single page view.

    Is this possible?

    As I have it now, I have an index.php that is used for both the main page and for the single page views (whic

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark (podz)


    Support Maven

    Leave index as it is.
    Copy it, then edit that copy to have all the functions you want and save it as ‘single.php’ into the themes directory you are using.

    Every single post then viewed will use that template.

    That help ?

    Hmm.. I should have been more clear with what I wanted. What I want is the ability to dynamically switch between different “single.php” templates, for the same post, by specifying something in the URI.

    If you look at, I am trying to simulate something like that. You see the “read more” button under his photos leaves to a different single page view.

    Here is what I want: —–> INDEX.PHP

    click the previous button to go to previous entry ——> INDEX.PHP

    click the read more button ——-> SINGLE.PHP for that entry.

    Does this make sense?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘multiple single page templates for the same post’ is closed to new replies.