Support › Forums › Programming and Development › WordPress › get category name using following comment
Tagged: Get category name using category slug
This topic contains 0 replies, has 1 voice, and was last updated by gnana sekaran 5 months, 4 weeks ago.
Using below function we can get category name from slug
$category_slug // cat slug name
$catObj = get_category_by_slug($category_slug);
$catName = $catObj->name; //get cat name
You must Login/Register to reply to this topic.