Opened 17 years ago
Closed 17 years ago
#7914 closed defect (bug) (fixed)
wp_page_menu different results from echo and other parameters
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.7 | Priority: | high |
| Severity: | normal | Version: | 2.7 |
| Component: | Template | Keywords: | |
| Focuses: | Cc: |
Description
When using the wp_page_menu template tag, not sure what the 'echo' parameter is intended to produce. Used in conjunction with 'title_li' and 'show_home' even more questions...
These both cause slightly different results, but shouldn't echo=0 display nothing?:
wp_page_menu('echo=1')
wp_page_menu('echo=0')
This shows the title at the top of the list, the pages, then Home as the last page listed:
wp_page_menu('title_li=Title for wp_page_menu&echo=1&show_home=1')
This shows Home, then the title, then the rest of the pages:
wp_page_menu('title_li=Title for wp_page_menu&echo=0&show_home=1')
This shows the list of pages with Home at the end:
wp_page_menu('echo=1&show_home=1')
This shows Home followed by the remaining pages:
wp_page_menu('echo=0&show_home=1')
Using 2.7-almost-beta updated ~ 9am EST this date
Reference: ticket:7698
[7914] fixes echo.
I think wp_page_menu() needs to do its own title_li handling instead using wp_list_pages() title_li.