Calling certain category by Slug not term_ID
Hello, I m trying to call a particular category for the conditional statement. I know how to call it with custom taxonomy like
$cat_id = apptheme_get_custom_taxonomy ($post->ID, 'ad_cat', 'term_id');
This function calls by term ID. I want to call the category by 'slug'. I couldn't able to get the solution after reading many materials. Please help me.
Regards