Get all categories from wordpress

If you are working on wordpress custom theme and you want to include categories that you created and customize it someway that you prefer, here is how.

wordpress itself has a Template Tag of calling all the categories.
[cc lang=”php”]

you can also do an array inside category to customize the way you want.
[cc lang=”php”]
// example
$args = array(
‘title_li’ => __( ‘Categories’ ), // this allow you the change the title of this category.
‘show_count’ => 1 //to show the amount post of this category, use 0 to hide
); ?>

note that there are a few choice you can set in this array, you can read more on