Forums

[resolved] How do I remove the second submenu? (8 posts)

  1. fkaf
    Member
    Posted 3 years ago #

    Something here?

    <?php
    if($options['menu_type'] == 'categories') {
    wp_list_categories('title_li=0&orderby=name&show_count=0');
    } else {
    wp_list_pages('title_li=0&sort_column=menu_order');
    }
    ?>

  2. MichaelH
    Member
    Posted 3 years ago #

    Not clear what you are asking so review the various arguments that can be used with wp_list_categories() and with wp_list_pages().

  3. fkaf
    Member
    Posted 3 years ago #

    I use iNove with two sub levels of the top bar menu. I want to show just one submenu.

  4. MichaelH
    Member
    Posted 3 years ago #

    Are you showing pages or categories?

  5. kjagen
    Member
    Posted 3 years ago #

    I`m showing the pages.

    Btw, is it possible to show pages as cathegories? In widgets etc.
    The way I do it now is listing every single id number on the pages I want as shown in a sidebar. It would be easiar if that could be called as cathegories. I use pages as the basic of the site and posts only on news related stuff

  6. MichaelH
    Member
    Posted 3 years ago #

    kjagen - please start another topic with that question. Thanks.

  7. fkaf
    Member
    Posted 3 years ago #

    I use pages in the top menu

  8. MichaelH
    Member
    Posted 3 years ago #

    I'm guessing you need to add depth=1 to the wp_list_pages line:

    wp_list_pages('depth=1&title_li=0&sort_column=menu_order');

    Please review the wp_list_pages() article for information on the various arguments.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags