WordPress.org

Ready to get started?Download WordPress

Forums

Different Template for Single post (4 posts)

  1. fi2c
    Member
    Posted 9 years ago #

    I have different template for single post show. Now I'm doing it by using a simple "if(!p) {...} else {...}" but it will not work with static addresses for weblog. Is there any suggestion?
    (Btw. I'm using my own 1.2 template in 1.5 because of so many personal changes.)

  2. Kafkaesqui

    Posted 9 years ago #

    Static addresses?

    With 1.5 you can use the new conditional functions to test for the type of page you're on:

    if(!is_single())

    Here's a list of them all:

    http://boren.nu/archives/2004/10/16/templates-and-the-is-functions/

  3. Nick Momrik
    Member
    Posted 9 years ago #

    Create a single.php file in your theme folder and this will be used for when a single post page is loaded.

  4. fi2c
    Member
    Posted 9 years ago #

    Wow!
    So quick, so useful :)
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.