[wp-hackers] Why does wp_page_menu exist?

Austin Matzko if.website at gmail.com
Wed Feb 4 20:10:44 GMT 2009


On Wed, Feb 4, 2009 at 2:00 PM, Dan Gayle <dangayle at gmail.com> wrote:
> Why does wp_page_menu exist? The functionality is LESS than wp_list_pages.
> For example, what if one doesn't want to have sub-pages listed? You can't if
> you choose to use wp_page_menu. In fact, it provides half of the
> functionality of wp_list_pages, while only allowing the additional use of
> adding a link to the home page, which is easily done like this:

I'm not sure why you say that.  wp_page_menu calls wp_list_pages(),
passing its argument to wp_list_pages().  So wp_list_pages()'s
features are actually a subset of wp_page_menu()'s.


More information about the wp-hackers mailing list