Quantcast
Channel: Wordpress Category API - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Wordpress 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
Browsing all 2 articles
Browse latest View live


Latest Images