
By using following function you can get category id. Parameter for this function are category name
1
2
3
4
5
|
<?php $cat_id =get_cat_ID( $cat_name ) ?> /* Parameters $cat_name=String category name returns 0, if failure and ID of category on success. */ |
Leave a Reply