groups

name language licence
Untitled Snippet PHP Other
Unique Category template PHP Other
Display Google Ad after the first post PHP Other
Custom Fields PHP Other
Dynamic Content Dynamic Content PHP Other
Unique Single template PHP Other
Query Posts PHP Other
Feature post highlighting PHP Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 >



language: PHP
licence: Other

Unique Single template

options: view full snippetsend to code collector
<?php
  $post = $wp_query- >post;

  if ( in_category('1') ) {
  include(TEMPLATEPATH . '/single1.php');

  } elseif ( in_category('2') ) {
  include(TEMPLATEPATH . '/single2.php');

  } else {
  include(TEMPLATEPATH . '/single_other.php');

  }
? >

	
(Continues...)