WordPress.org

Ready to get started?Download WordPress

Forums

Different Theme for single post (4 posts)

  1. dafunks
    Member
    Posted 6 years ago #

    Is there a way I can have a different theme used for one or two posts I have made? I have found a way to do it for pages but not posts... It would be a great help for me if this could happen.

    Thanks for any help,

  2. scribu
    Member
    Posted 6 years ago #

    There is no "official" way of doing this. However, you can use conditional tags in the "single.php" file. You could do something like this, inside The Loop:

    if( in_category('123') ){
        // Code goes here
    }
    else{
        // Code for normal posts
    }
  3. dafunks
    Member
    Posted 6 years ago #

    I am no coder (Sorry) so am not sure what I would put in the code. I know basic things but would not know what to do with this code at the moment.

    I would know where to put it though.

    Thanks,
    Lee

  4. scribu
    Member
    Posted 6 years ago #

    See The Loop.

Topic Closed

This topic has been closed to new replies.

About this Topic