Return to Snippet

Revision: 14711
at June 9, 2009 08:44 by welshstew


Initial Code
<?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');
		}
?>

Initial URL


Initial Description


Initial Title
mutiple layout for single post - wordpress

Initial Tags
wordpress

Initial Language
PHP