Forked from agragregra/Wordpress - Условия вывода single.php
Created
April 27, 2017 17:08
-
-
Save Scordavis/0047004509aabc5debd464cad70005d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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