Forked from agragregra/Wordpress - Условия вывода single.php
Last active
January 8, 2019 14:35
-
-
Save w-perspective/b7fcc278cbeb80588ad9094fe805157e to your computer and use it in GitHub Desktop.
Wordpress - conditions to show single.php
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