Skip to content

Instantly share code, notes, and snippets.

@jhouedanou
Created April 11, 2014 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhouedanou/10487172 to your computer and use it in GitHub Desktop.
Save jhouedanou/10487172 to your computer and use it in GitHub Desktop.
<?php
$post = $wp_query->post;
if (in_category('catname')) {
include(TEMPLATEPATH.'/single-catname.php');
} elseif (in_category('glaoui')) {
include(TEMPLATEPATH.'/single-glaoui.php');
else{
include(TEMPLATEPATH.'/single_default.php');
//single_default.php etant le modele d article par defaut
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment