Using slug instead of cat ID
-
Hello, I have a custom taxonomy with the following code
$cat_id = appthemes_get_custom_taxonomy($post->ID, ‘ad_cat’, ‘term_id’);
For the conditional if/else statement, I m using cat ID to refer particular category. Is there any way I can use Slug name instead of ID?
Please help me.
The topic ‘Using slug instead of cat ID’ is closed to new replies.