WordPress.org

Ready to get started?Download WordPress

Forums

Navigation for Static Pages (2 posts)

  1. reschkevito
    Member
    Posted 4 years ago #

    I read a lot on codex and other blogs, but as far as I am into the wordpress structure I think what i want is not possible with wp_list_pages or wp_page_menu, so I hope someone can give some tips or solutions or my problem.

    I have a 4 level page hierachry similiar to this

    • Blog (Level 0)
    • Page 1 (Level 0)
      • Page 1.1 (Level 1)
        • Page 1.1.1 (Level 2)
          • Page 1.1.1.1 (Level 3)
        • Page 1.1.2
      • Page 1.2 (Level 1)
        • Page 1.2.1 (Level 2)

    The Top Level is realized as horizontal Topmenu.
    I would like to have a vertical Menu on every page that list all ancestors of the current page (except level 0), all children of the page and all siblings of the current pages and his ancestors (except level 0)

    e.g. Page 1

    • Page 1.1
    • Page 1.2

    e.g. Page 1.1

    • Page 1.1
      • Page 1.1.1
      • Page 1.1.2
    • Page 1.2

    e.g. Page 1.1.1 or Page 1.1.1.1

    • Page 1.1
      • Page 1.1.1
        • Page 1.1.1.1
      • Page 1.1.2
    • Page 1.2

    Many thanks in advance.
    Marcel Reschke

  2. MichaelH
    Member
    Posted 4 years ago #

    Look at the "List sub-pages" example in wp_list_pages() article.

Topic Closed

This topic has been closed to new replies.

About this Topic