It was pretty simple. after going through the wordpress codex,
just had to change the second line on single.php
$categorySlugName = single_cat_title(true);
TO
$cateogrySlugName = get_category_by_slug($slug);
It was pretty simple. after going through the wordpress codex,
just had to change the second line on single.php
$categorySlugName = single_cat_title(true);
TO
$cateogrySlugName = get_category_by_slug($slug);