[wp-trac] Re: [WordPress Trac] #8673: Missing capability to override Walker_Page

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 19 01:42:15 GMT 2008


#8673: Missing capability to override Walker_Page
-------------------------+--------------------------------------------------
 Reporter:  MikeLittle   |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.8      
Component:  Template     |      Version:  2.7      
 Severity:  normal       |   Resolution:           
 Keywords:  haspatch     |  
-------------------------+--------------------------------------------------
Comment (by MikeLittle):

 Here is a ''trivial'' example of using the new capability.

 Add the attachment add-to-functions.php to functions.php in your theme.
 Add the following calls in your sidebar.

 <?php wp_list_pages(array('title_li'=>'<h2>Pages</h2>', 'walker' => new
 zed1ExamplePageWalker) ); ?>

 <?php wp_dropdown_pages(array('title_li'=>'<h2>Pages</h2>', 'walker' =>
 new zed1ExampleDropdownPageWalker) ); ?>

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8673#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list