Answer by Mouner Mostafa for Wordpress Category API
you can use this function wordpress already have<?php $cats = get_category(1/*change the number with your cats id*/);echo $cats->term_id; //get the cats idecho $cats->name; //get the cats...
View ArticleWordpress Category API
I have this code:public static function category($id = null) { $fields = ['id'=>'cat_ID','slug'=>'slug','title'=>'name','description'=>'description','count'=>'count']; // All categories...
View Article