WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing a post's template (5 posts)

  1. archard
    Member
    Posted 7 years ago #

    I'd like to make it so that the "full story" page, the one with the comment template, does not use the Main Index Template and rather uses another template, or preferably no template at all. Just the story without all the extra stuff I've added to the Main Index Template. Is there a way to achieve this?

  2. saphod
    Member
    Posted 7 years ago #

    Yes, there is.

    For a single post view, the template "single.php" is used. If there is no "single.php", the main index template will be used instead.

    You should copy the main index template "index.php", rename it to "single.php" and erase all the php-code that is not wanted... just as simple as that. :-D

  3. archard
    Member
    Posted 7 years ago #

    Ah, thank you :)

  4. archard
    Member
    Posted 7 years ago #

    Hmm now something very weird has happened. The post actually gets displayed twice, the first instance without any comments and the time stamp showing today. The second instance appears how it normally should.

    Here's the page
    .

  5. archard
    Member
    Posted 7 years ago #

    Nevermind, I got it all sorted out. Thanks again :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.