[wp-hackers] no 'before' or 'after' parameters for wp_list_pages()?

Spencer Finnell spencer.gurnk at gmail.com
Mon Nov 30 06:01:42 UTC 2009

You could use get_pages 
<http://codex.wordpress.org/Function_Reference/get_pages> to get an 
array of the pages, then loop through them creating a custom structure.

Ghodmode wrote:
> I'm using both wp_list_bookmarks() and wp_list_pages() in my theme to
> generate a horizontal menu bar in the header.  I prefer not to use HTML
> lists (li) elements, so I use the 'before=' and 'after=' parameters for
> my call to wp_list_bookmarks(), but there's no equivalent parameter for
> the wp_list_pages() function.
> I noticed that wp_list_bookmarks() gets 'before' and 'after' from
> wp_parse_args(), but wp_list_pages() looks a bit more convoluted.
> I'd like to have those two options available to wp_list_pages().  Does
> anyone agree or disagree?
> Thank you.
> --
> Ghodmode
> http://www.ghodmode.com
> _______________________________________________
> 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