[wp-hackers] Page Hierarchy
Otto
otto at ottodestruct.com
Thu Nov 19 18:36:42 UTC 2009
get_pages gives you an array of the pages. It's not tree-like, but you
can create a custom Walker for it, if you want to make it tree like.
wp_list_pages does just what you asked for, outputs a unordered list.
It can do a tree like list, if you like.
-Otto
Sent from Memphis, TN, United States
On Thu, Nov 19, 2009 at 12:14 PM, Jeremi Bergman <jeremib at gmail.com> wrote:
> Does anyone know of any code snippet that already exists that will give me
> either an multi dimensional array, or a ul of all pages and their page
> hierarchy?
>
> Thanks
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list