Today, while trying to customize the single.php template for a specific category I found a pretty old article written by Lorelle:
Her tip is really simple and really useful: just rename your
single1.php and create a new
single2.php with your category specific layout; after that, create a new
single.php file with this code:
So, if the post is in category 1 WordPress will use the
single2.php otherwise it will use
I wrote a more flexible solution: check it out.