I have got the category id list with the variable $my_cats_id.
So now I have used my own trick to get the slug –
[php]
echo str_replace( ‘ ‘, ‘-‘, strtolower( get_cat_name( $my_cats_id ) ) );
[/php]
I have got the category id list with the variable $my_cats_id.
So now I have used my own trick to get the slug –
[php]
echo str_replace( ‘ ‘, ‘-‘, strtolower( get_cat_name( $my_cats_id ) ) );
[/php]