Forked from agragregra/Wordpress - Условия вывода single.php
Created
November 11, 2017 14:43
-
-
Save zhukovec/7e4e59bf8cd499235d4752d173826267 to your computer and use it in GitHub Desktop.
This file contains hidden or 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