WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_pages: showing the root AND children of current page (5 posts)

  1. BlackMan890
    Member
    Posted 6 years ago #

    Hello there.

    My website is supposed to list pages in the root and if current page has children, list them as indent, like this:

    Default:

    [ page 1 ]
    [ page 2 ]
    [ page 3 ]
    [ page 4 ]

    When on page 3, it is supposed to look like this:

    [ page 1 ]
    [ page 2 ]
    [ page 3 ]
    [ - page 3.1 ]
    [ - page 3.2 ]
    [ - page 3.3 ]
    [ page 4 ]

    Does anyone know how I can accomplish that?

    Sincerely:
    Jonatan Nilsson
    Iceland
    [ page 4 ]

  2. BlackMan890
    Member
    Posted 6 years ago #

    bump

  3. kameruchi
    Member
    Posted 6 years ago #

    Im trying to achieve the same in WP 2.3, but nothing up the moment...

  4. mores
    Member
    Posted 6 years ago #

    hmm, as far as i know, the wp_list_pages function does just that UNLESS you specify it to NOT do it by using the depth parameter.)
    as far as formatting the output, you need to fiddle with the css.

  5. MichaelH
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic