WordPress.org

Ready to get started?Download WordPress

Forums

Custom Menu Wizard Widget
[resolved] Start level from 0 (5 posts)

  1. Dinesh Kesarwani
    Member
    Posted 10 months ago #

    I am looking for the menu start from top.
    I have a menu item start "About" in top and it contains 4 sub-menus. And, I want to display menu including About and it 4 child items
    About is on 0 level
    and submenus are on 1 level

    http://wordpress.org/plugins/custom-menu-wizard/

  2. wizzud
    Member
    Plugin Author

    Posted 10 months ago #

    Assuming that About is only top-level item, and that you have no other criteria (because you haven't mentioned any!) :
    show all, start level 1, depth 2

  3. Dinesh Kesarwani
    Member
    Posted 10 months ago #

    I have menu level structure like below:

    Home
    About Us
    - About Sub 1
    - About Sub 2
    - About Sub 3
    - About Sub 4
    Our Services
    - Services Sub 1
    - Services Sub 2
    - Services Sub 3

    Now, when user is on "About Us" or any "About Sub x", the sidebar menu will look like below:

    About Us
    - About Sub 1
    - About Sub 2
    - About Sub 3
    - About Sub 4
  4. andrewcking
    Member
    Posted 10 months ago #

    I was able to get this using these settings:
    Filter
    children of: current root item
    starting level: 1
    Fallbacks
    If "Children of" is Current Root / Parent Item, and no ancestor exists :
    Switch to Current Item: checked
    Include Parent: checked
    with Siblings: unchecked
    Output
    Include Parent: checked
    with Siblings: unchecked
    Include Ancestors: checked

    I am not sure exactly which of these are necessary and which are not, but it will give you something to play around with. One thing I have noticed with these settings however is that if you are in a top-level item and it has no children, nothing will display, not even the top level item.

  5. Dinesh Kesarwani
    Member
    Posted 10 months ago #

    Hi @andrewcking,

    Thanks a lot. It works.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.