#8469 closed defect (bug) (fixed)
wp_page_menu() should work for static front pages too
Reported by: | AaronCampbell | Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
wp_page_menu()
is the new function that lets you list your pages as a menu and optionally add a "home" link (named whatever you want).
It uses is_home()
to test and should use is_front_page()
instead. Additionally, if the front page is a page, it should add that as an exclude when it calls wp_list_pages()
so that there isn't a duplicate menu item.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
(In [10115]) Make wp_page_menu() respect is_front_page(). Fixes #8469 props AaronCampbell.