wordpress获取分类标题,描述,分类ID,链接url函数
get_cat_ID() 根据分类名称获取分类ID
get_cat_name() 根据分类ID获取分类名称
用法:
参数:$cat_name 分类名称默认值为”General”,类型为字符型,可选
返回的值:出错时返回0,成功则返回分类ID号,类型为整数
示例:
Update your browser to view this website correctly. Update my browser now