[wp-trac] [WordPress Trac] #7914: wp_page_menu different results
from echo and other parameters
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 18 16:30:58 GMT 2008
#7914: wp_page_menu different results from echo and other parameters
----------------------+-----------------------------------------------------
Reporter: MichaelH | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.8
Component: Template | Version: 2.7
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
When using the [http://codex.wordpress.org/Template_Tags/wp_page_menu
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
--
Ticket URL: <http://trac.wordpress.org/ticket/7914>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list