How to get the category id and link in wordpress post page

How to get the category id and link in wordpress post page or within the loop.

In wordpress you can use their default functions to get the category or taxonomy id or link. Below is the code for getting the category id or link within the single.php or post loop.

 

 

 

Leave a Comment