有些主题不支持默认的自定义菜单功能,但有时我们想采用分类目录作导航,排序成了头痛的事。其实修改两个文件就可以了。首先找到主题里的header.php文件找到<?php wp_list_pages(’title_li=&depth=1′); ?>改为<?php wp_list_categories(’title_li=&depth=1′); ?>,意思为用分类目录这个函数替代页面作导航。
然后到wp-includes/category- template.php中找到
function wp_list_categories( $args = ” ) {
    $defaults = array(
        ‘show_option_all’ => ”, ‘orderby’ => ‘name’,

将"name"改为“id”  就是以你新增的分类目录次序作排序。