Last active
August 29, 2015 14:16
-
-
Save iiiBird/e54b3b3aaeaaf7c7a00d 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 foreach((get_the_category()) as $category) { echo '<a href="'.get_category_link($category->cat_ID).'" title="'.$category->cat_name.'">'.$category->cat_name.'</a> '; } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment