How to get the category name without link
Today I am going to discuss about a simple but handy technique that might save your time. I was thinking to get rid of the permalink from the category name in WordPress. I got the way finally.. You can do it by using below code .
This code will return only the category name which is related to that specific post without the permalink to that category. You may need it sometimes when you don’t want to link the category to it’s archive page.