Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save agragregra/634f919d7dc282fe7705 to your computer and use it in GitHub Desktop.
Save agragregra/634f919d7dc282fe7705 to your computer and use it in GitHub Desktop.
<?php
$post = $wp_query->post;
if (in_category('cat_label_1')) {
include(TEMPLATEPATH.'/single-cat_label_1.php');
} elseif (in_category('cat_label_2')) {
include(TEMPLATEPATH.'/single-cat_label_2.php');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment