Different Single Post Pages In Wordpress
July 8th, 2006, Published in Wordpress, 2,188 Views,
Email This

By default all Wordpress posts viewed as a single post are controlled by the particular theme's "single.php" file.
Wordpress, by default is setup to use one template file ("single.php") for every post.(But what if you wanted to display a different layout or different code dependent on the specific categories a post or filed into?
To do this with Wordpress; one needs to use a bit of PHP in the "single.php" file and create category specific files.










5:40 pm - 9-18-2006
This is a great tip - I really like simple solutions - and this is a simple solution to a fairly complex problem.
6:43 am - 4-23-2007
Thank You
2:14 am - 6-12-2007
Thank you SOOOO much. This has saved my night from 12 hours of hair pulling trying to dissect PHP I can’t even understand.
2:25 am - 1-27-2008
This was just what I needed too, thanks for sharing it.
11:52 pm - 4-22-2008
Dude! I’ve looked all over for a solution like this! Thanks so much!