Display a Different Template for a Single Post IF its in a certain Category
-
Is this possible?
I’ve used the template hierarchy to display a custom template when looking at the Category page for all the “Press” posts. But clicking on an individual post still loads the single.php template. I’d like WordPress to display the custom template if that Single Post is in the “Press” category and the default Single.php template if it is anything else.
Could someone point me in the right direction of figuring this out? I’ve been reading about conditional tags and Category templates for a while but I feel even more confused. Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Display a Different Template for a Single Post IF its in a certain Category’ is closed to new replies.