get_categories() only returns categories in use get_categories() only returns categories in use wordpress wordpress

get_categories() only returns categories in use


<?php $args = array("hide_empty" => 0,                    "type"      => "post",                          "orderby"   => "name",                    "order"     => "ASC" );      $types = get_categories($args);?>


For this I suggest to use:

wp_list_categories( $args );

Further explanations about this function and how to use: http://codex.wordpress.org/Template_Tags/wp_list_categories