I am using wordpress and I am wondering how do I get just the permalink and name of the category of a post when using:
<?php the_category() ?>
The above outputs a list and I just want to be able to wrap the permalink and category in my own markup
I am using wordpress and I am wondering how do I get just the permalink and name of the category of a post when using:
<?php the_category() ?>
The above outputs a list and I just want to be able to wrap the permalink and category in my own markup
You must be logged in to post a comment.
I think you want
get_the_category()
andget_category_link()
: