Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sxidsvit/839ef1dd2115ee0fe892 to your computer and use it in GitHub Desktop.
Save sxidsvit/839ef1dd2115ee0fe892 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