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

Pete Mall pete at jointforcestech.com
Mon Nov 30 05:50:58 UTC 2009


wp_list_pages() accepts the following two arguments:
 *link_before*  (*string*) Sets the text or html that proceeds the link text
inside <a> tag. (This parameter was added with Version 2.7 </Version_2.7>)
*link_after*  (*string*) Sets the text or html that follows the link text
inside <a> tag. (This parameter was added with Version 2.7 </Version_2.7>)
On Sun, Nov 29, 2009 at 9:42 PM, Ghodmode <ghodmode at ghodmode.com> 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