groups

name language licence
Unique Single template PHP Other
Query Posts PHP Other
Feature post highlighting PHP Other
Retrieve and Display Images from a WordPress Post PHP Other
Attachment display PHP Other
function_exists() PHP Other
Linking Without Using Permalinks PHP Other
Static Page with Mini-Loop PHP Other

< 1 2 3 >



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...)