任意の場所にカテゴリ一覧を表示します。
以下のようなコードを入れてみてください。
<?php $arrCategories = $wpdb->get_results(" select * from wp_terms as t left join wp_term_taxonomy as tt on t.term_id = tt.term_id where tt.taxonomy = 'category' "); foreach ($arrCategories as $arrCategory){ echo '<a href="/?cat=' . $arrCategory->term_id . '">' . $arrCategory->name . '</a></li><br />'; } ?>