Single Post Template Problem…?
-
I have been using this tutorial for creating post templates ready rather than having them selected in the admin with a plugin.
However, i have run into a problem..
My single.php has this code in..
<?php if (in_category('1')) {include (TEMPLATEPATH . '/single-1.php'); } if (in_category('3')) {include (TEMPLATEPATH . '/single-3.php'); } else { include (TEMPLATEPATH . '/single-default.php'); } ?>i.e if cat 1 show singe-1 if cat 3 show single-3 however, its not working properly, the single-1 is all messed up whilst the single-3 is fine.
Is the code connected properly via php? If not how do i connect it so it does the job it should…
Many thanks 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Single Post Template Problem…?’ is closed to new replies.