remove empty ul
add hierarchical post type support