WordPress.org

Support

Support » How-To and Troubleshooting » Different Theme for single post

Different Theme for single post

  • 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,

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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
    }

    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

    See The Loop.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different Theme for single post’ is closed to new replies.