phpwords.wordpress.com
How to Get custom category name or id on archive.php page in WordPress
global $wp_query; $cat_obj = $wp_query->get_queried_object(); $plcatname = $cat_obj->term_id $plcatname = $cat_obj->name;