http://codex.wordpress.org/Function_Reference/get_categories
example:
<?php
foreach(get_categories('parent=0&orderby=id') as $cat) {
echo $cat->term_id.' '.$cat->name.'<br/>';
}
?>
http://codex.wordpress.org/Function_Reference/get_categories
example:
<?php
foreach(get_categories('parent=0&orderby=id') as $cat) {
echo $cat->term_id.' '.$cat->name.'<br/>';
}
?>