[wp-hackers] wp_list_pages

Charles E. Frees-Melvin charles.freesmelvin at gmail.com
Tue Jan 8 00:04:00 GMT 2008


What you are looking for is the "Collasing Page Menus" pluging
http://sporkfancier.com/collapsing-page-menus-plugin I use it on my site
www.cefm.ca

thee17

On Jan 7, 2008 6:58 PM, Aaron D. Campbell <wp-hackers at ezdispatch.com> wrote:

> I'm trying to display only top level pages AND pages that are either
> children of the current page, or children of the ancestors of the
> current page.  So, if I have a page structure like this:
> A
>  > R
>  > > U
>  > > > X
>  > > > Y
>  > > > Z
>  > > V
>  > > W
>  > S
>  > T
> B
>  > P
> C
>  > Q
> D
> E
> F
>
>
> On the main page, I'd like to display all the top level pages: A, B, C,
> D, E, F
>
> On page 'A' I would like to display:
> A
>  > R
>  > S
>  > T
> B
> C
> D
> E
> F
>
> On page 'R' I would like to display:
> A
>  > R
>  > > U
>  > > V
>  > > W
>  > S
>  > T
> B
> C
> D
> E
> F
>
> On page 'U' I would like to display:
> A
>  > R
>  > > U
>  > > > X
>  > > > Y
>  > > > Z
>  > > V
>  > > W
>  > S
>  > T
> B
> C
> D
> E
> F
>
> Basically, it would be like an expanding tree, but it would not use
> javascript, it would simply build the menu based on the current page.
> It seems like this would be a common desire.  Is there something like
> this out there, or some simple way of doing it?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
--------------------------------
Charles E. Frees-Melvin
charles.freesmelvin at gmail.com
www.cefm.ca


More information about the wp-hackers mailing list