WordPress.org

Forums

[resolved] navigation with subpages (4 posts)

  1. jamespellerano
    Member
    Posted 5 years ago #

    I want to display a navigation bar on my website, where if it is on the front page it displays the parent pages. I have gotten that far.

    `if (is_front_page()) {
    wp_list_pages('title_li=&depth=1&exclude=12');
    }
    else {
    ...

    Example Pages:
    - Home
    -About
    --History (subpage of About)
    --Our Founder (subpage of About)
    -Services
    -Portfolio

    When I go to click on About it only will display the subpages, I need it to display the parent pages.

    An example is: http://www.neu.edu/humanities

  2. MichaelH
    Member
    Posted 5 years ago #

    You fix it? I don't see the problem at the URL.

  3. jamespellerano
    Member
    Posted 5 years ago #

    That is just an example of what I want my the navigation to act like.

  4. MichaelH
    Member
    Posted 5 years ago #

    Check the examples in the wp_list_pages() article.

Topic Closed

This topic has been closed to new replies.

About this Topic