Skip to main content
[Edit removed during grace period]
Source Link
BlueSuiter
  • 1.2k
  • 9
  • 16
Source Link
BlueSuiter
  • 1.2k
  • 9
  • 16

Use this line of code for listing categories.

   $terms_list = get_terms(array('taxonomy'=>'category', 'hide_empty'=>FALSE, 'parent'=>0));
   print_r($terms_list);