/ Published in: PHP
Expand |
Embed | Plain Text
<?php $post = $wp_query->post; if ( in_category('1') ) { include('single-foo1.php'); } elseif ( in_category('2') ) { include('single-foo2.php'); } else { include('single-normal.php'); } ?>
Comments
Subscribe to comments
You need to login to post a comment.

Great addition.
I was looking for something like this.
Thanks,
Swat Khan