WordPress.org

Ready to get started?Download WordPress

Forums

Different vertical menus for each page (7 posts)

  1. jen0148
    Member
    Posted 3 years ago #

    Hi All,

    I have a consistent horizontal menu but I would like to create different custom vertical menus for each page. So for example, when on the home page I want options of page H,I and J on the vertical menu, when on the about page I want options of X, Y and Z on the vertical menu.

    Does anyone know of a good plugin for this? I have been looking at Y Tree Menu (http://wordpress.org/extend/plugins/yt-tree-menu/screenshots/) but I'm not sure if this is the best one to use for this.

    Any advice would be gratefully received!

    Thanks!
    Jen

  2. s_ha_dum
    Member
    Posted 3 years ago #

    If you can't find a plugin...

    If you have a limited number of menus that you want to create on a few specific pages you should be able to add page specific menus to your theme and manage them from wp-admin->Appearance->Menus. By "should be able to", I mean that I haven't actually tried it but I can't think of any reason it wouldn't work. That should be relatively easy.

    More dynamically created menus could be tougher but helping with that would take more information about what you want to do.

  3. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    The easiest solution is to set the menu_order appropriately for all of your nested Pages, and then to call wp_list_pages(), using the child_of array parameter.

  4. s_ha_dum
    Member
    Posted 3 years ago #

    ^^^ Yeah, that's a good idea. ^^^

  5. jen0148
    Member
    Posted 3 years ago #

    Thanks for the suggestions, I couldn't see how I could set different menus for each page in the menu in the menus area but I did find a plugin called Custom Page Menus which so far seems to do the job well.

    Thanks Chip and Apljdi!

  6. s_ha_dum
    Member
    Posted 3 years ago #

    You can't create per page menus via the menu control panel, you'd have to edit theme files.

  7. dColumbus
    Member
    Posted 2 years ago #

    @apljdi,

    And how would one display a specific menu within a theme if the menu isn't assigned specifically to a theme location?

Topic Closed

This topic has been closed to new replies.

About this Topic