Support » Fixing WordPress » How to show Category Description on Menus

  • Hi all,
    I’m now building a TwentyEleven child theme.
    I use this code to override the default wp_nav_menu_items (to add Home link with custom class)

    function new_nav_menu_items($items) {
        $homelink = '<li class="logo"><a href="' . home_url( '/' ) . '">' . __('Home') . '</a></li>';
        $items = $homelink . $items;
        return $items;
    add_filter( 'wp_nav_menu_items', 'new_nav_menu_items' );

    It works fine, but shows only category’s title.
    Now I’d like to show category’s description as well.
    So, how to do that? What code should be added?

    Thanks in advanced.

  • The topic ‘How to show Category Description on Menus’ is closed to new replies.