Last active
November 18, 2016 00:52
-
-
Save senooat/b825b2af5a34a7262671c9007819c67b 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
$category = get_the_category(); | |
$cat_id = $category[0]->cat_ID; | |
$cat_name = $category[0]->cat_name; | |
$cat_slug = $category[0]->category_nicename; | |
$category_link = get_category_link( $cat_id ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment